Is this a regression?
The previous version in which this bug was not present was
Before v15. I was using 14.2.2.
Description
Some components have "touch targets" that are positioned absolutely and extend past the borders of the component itself. When one of these components is near the edge of a scrollable container, it can cause the scrollbar to appear when it shouldn't. The work-around is easy enough - just add padding, but besides throwing off your design, it can be difficult and frustrating trying to figure out why the scrollbar is appearing.
Reproduction
Steps to reproduce:
- Create a scrollable div
- Place a button at the bottom or right side of the div without it extending past the scrollable area.
- Notice a scrollbar appears anyway because an element with the class
mat-mdc-button-touch-target is absolutely positioned and extends past the borders of the button.
Expected Behavior
The scrollbar should not appear. The touch target should not extend past the edges of the button or should be clipped to stay within scrollable area.
Actual Behavior
A scrollbar appears because an absolutely positioned element is overlapping the scrollable element's border.
Environment
- Angular: 15.0.1
- CDK/Material: 15.0.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Is this a regression?
The previous version in which this bug was not present was
Before v15. I was using 14.2.2.
Description
Some components have "touch targets" that are positioned absolutely and extend past the borders of the component itself. When one of these components is near the edge of a scrollable container, it can cause the scrollbar to appear when it shouldn't. The work-around is easy enough - just add padding, but besides throwing off your design, it can be difficult and frustrating trying to figure out why the scrollbar is appearing.
Reproduction
Steps to reproduce:
mat-mdc-button-touch-targetis absolutely positioned and extends past the borders of the button.Expected Behavior
The scrollbar should not appear. The touch target should not extend past the edges of the button or should be clipped to stay within scrollable area.
Actual Behavior
A scrollbar appears because an absolutely positioned element is overlapping the scrollable element's border.
Environment