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

Notification button goes out of dom when progress changes #91682

Closed
joaomoreno opened this issue Feb 27, 2020 · 5 comments
Closed

Notification button goes out of dom when progress changes #91682

joaomoreno opened this issue Feb 27, 2020 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@joaomoreno
Copy link
Member

When verifying #91469 (comment), there was once that I clicked the Cancel button and nothing happened. I was able to reliably reproduce by holding mouse down, waiting for progress to change and releasing the mouse button.

@bpasero
Copy link
Member

bpasero commented Feb 27, 2020

This is because I call List#splice() whenever I update progress. I could not figure out a better way how to directly update progress within a list item as far as I remember.

/duplicate of #50931

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 27, 2020
@vscodebot
Copy link

vscodebot bot commented Feb 27, 2020

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Feb 27, 2020
@bpasero
Copy link
Member

bpasero commented Feb 27, 2020

I remember why: if you update the message text, the height might change due to wrapping. As such I splice the notification, but maybe there is now a better way with newer API?

Code:

notificationList.updateNotificationsList(0, 1, [item]);

@joaomoreno
Copy link
Member Author

@bpasero Actually this would be exactly what you could use! cc @rebornix

@bpasero
Copy link
Member

bpasero commented Feb 27, 2020

@joaomoreno oh nice, will wait for that to land then.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants