Open andrewazores opened 6 years ago
FWIW, this is intentional on the Bootstrap side of things [0].
Having said that, I played around a little bit with this, and if the overflow
value is set to scroll
then the scrollbar will persist. However, the body gets appended with a modal-open
attribute and padding-right: 15px
styling.
(note the gap on the pf-toolbar)
It's also interesting to note that when the modal hides, it resets this value, but leaves a padding-right: 0px
on the body.
Is this still an issue after the changes you made?
Yes, although after Alex's comment above this may be a WONTFIX deal if it's an intentional Bootstrap quirk/feature.
Issue Overview
When appropriately sized, the My Spaces page will display a standard scroll bar. If the "Search for a space" toolbar button is clicked and the modal dialog appears, this scroll bar may disappear, causing the background (My Spaces view) to shift slightly. When the modal is dismissed the scroll bar may reappear, which shifts My Spaces back. This behaviour has been reproduced in Chromium/Chrome but not Firefox.
Expected Behaviour
The scroll bar should either always show or always hide, regardless of modal show/hide state.
Current Behaviour
The scroll bar may hide when the modal is shown and vice-versa.
Steps To Reproduce