question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I was going through documentation and did not find anything about sticky toasts.

Lets say I have long page, when I make toast something like this:

toast.success("Some lol message", {
    onClose: () => self.loadComments(),
    autoClose: false,
    position: toast.POSITION.TOP_CENTER,
    draggable: false,
});

The toast will be shown at the very top of the page, however I will not see it, as I am somewhere in the bottom of the page.

What to do in this case? Is it possible somehow to stick toast to the top center of the page and make it fixed position (or something close to it), so it moved after user.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bologercommented, Sep 22, 2019

@fkhadra I would reopen this as I would like to know how to fix it.

Here is an example: https://codesandbox.io/s/optimistic-ives-xsfqo

Just as an example: Assume you have a react application loaded in iframe. Iframe resizes with the content of the react application. Meaning if content of the iframe is 1500px, then iframe would be about that size. If users scrolls down to 1000px and I would like to create a toast, then it would be shown at the very top of the iframe which is outside of the user’s viewport, so it is not seen by the user.

Is there any way to fix it? Or at least what is the possible solution to it?

1reaction
fkhadracommented, Sep 9, 2018

Hey @bologer,

Sorry for the late reply. Did you try to overwrite the Toastify__toast-containe css class ? The position is set to fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sabrina (@sticky.toast) • Instagram photos and videos
577 Followers, 233 Following, 11 Posts - See Instagram photos and videos from Sabrina (@sticky.toast)
Read more >
Sticky Toast - Facebook
Sticky Toast. 91 likes. Sticky Toast is a Spokane Rock Band, and is made up of a talented team of creative musicians. We...
Read more >
Sticky alerts (Toasts) - Halfmoon
Sticky alerts or toasts are alerts that stick to the top right of the page, and are only displayed for a few seconds....
Read more >
Sticky Toast on Amazon Music Unlimited
Listen to your favorite songs from Sticky Toast. Stream ad-free with Amazon Music Unlimited on mobile, desktop, and tablet. Download our mobile app...
Read more >
Sticky Bun French Toast Recipe - Food.com
In a small pan melt butter. Add brown sugar, corn syrup and pecans (if using). When all has melted and combined take off...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found