Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large alert messages not dismissed correctly #8

Open
mehulmpt opened this issue May 17, 2020 · 5 comments
Open

Large alert messages not dismissed correctly #8

mehulmpt opened this issue May 17, 2020 · 5 comments
Labels
bug Something isn't working pinned Pinned issues that should be resolved

Comments

@mehulmpt
Copy link

If the content of the alert messages is too much, the alert doesn't dismiss completely and blocks the screen. This is the final state of alert in one case:

Screenshot 2020-05-17 at 7 42 11 PM

Repro: Create an alert with a long message with alert component and other default settings and try to dismiss it.

@mehulmpt
Copy link
Author

I've boiled down the problem to MIN_TRANSLATE_Y hardcoded to be 200. This should be set according to the preset alert height. I'll try to send a PR if I get time to fix it sometime. Thanks for the notification plugin :)

@seniv seniv added the bug Something isn't working label May 17, 2020
@seniv
Copy link
Owner

seniv commented May 17, 2020

Hello @mehulmpt, thanks for the report!

I thought about setting a bigger value to MIN_TRANSLATE_Y, but this creates a delay before the notification will be shown, and because of that, I decided to leave it at 200 as an optimal value.

As an idea, we can set this.translateY to calculated height of the notification+some margin(100px for example) before the "slide down" animation (in showNotification function), and then animate it to the same value in hideNotification function.

Anyway, I will be happy to see your pull request 🙂

@seniv
Copy link
Owner

seniv commented May 22, 2020

Hey @mehulmpt, I just released a new version which partially fixes the problem. Now the notification should always hide correctly.

But "slide down" animation of big components might be a bit unsmooth. Currently, I'm working on improvements here: component-height-calculation

@mehulmpt
Copy link
Author

mehulmpt commented Jun 2, 2020

Hi! Sure, I did not get time to get back to this, super busy month. Thanks for the patch for now :)

@seniv seniv added the pinned Pinned issues that should be resolved label Feb 8, 2021
@shrutikamathur30
Copy link

After applying safearea notification is not hiding properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned Pinned issues that should be resolved
Projects
None yet
Development

No branches or pull requests

3 participants