paper-menu-button
paper-menu-button copied to clipboard
Activating paper-menu-button causes body's scrollbar to disappear
Easy to test , if there's a vertical scrollbar , trigger the paper-menu-button , the scrollbar will disappear , when re-enabling , the scrollbar reappears. Can provide an animated gif if necessary
This is working as intended; otherwise scrolling will mess up the position of the dropdown. If you want to disable this, iron-dropdown
has an attribute allowOutsideScroll
that allows this. We should maybe also surface it to this element
This is happening to me as well. Why does it not occur in any of the demos?
Oh, @notwaldorf so it looks like adding the allowOutsideScroll
attribute to paper-menu-button
fixes the problem. Maybe this issue should be closed.
Wait, the demos have different behavior than I am experiencing still. The demos seem to keep the scrollbar but lock it in place. How can I achieve the same behavior? Having the scrollbar disappear is bad for my UX, because I have things shifting on the page when the scrollbar disappears, but then people can use the scrollbar, which messes up the position of the dropdown like @notwaldorf said. What to do?