paper-menu-button icon indicating copy to clipboard operation
paper-menu-button copied to clipboard

Activating paper-menu-button causes body's scrollbar to disappear

Open pdelanauze opened this issue 9 years ago • 4 comments

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

pdelanauze avatar Aug 21 '15 04:08 pdelanauze

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

notwaldorf avatar Jan 28 '16 22:01 notwaldorf

This is happening to me as well. Why does it not occur in any of the demos?

lastmjs avatar Aug 07 '16 06:08 lastmjs

Oh, @notwaldorf so it looks like adding the allowOutsideScroll attribute to paper-menu-button fixes the problem. Maybe this issue should be closed.

lastmjs avatar Aug 07 '16 06:08 lastmjs

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?

lastmjs avatar Aug 07 '16 06:08 lastmjs