Scroll Panel Bars not displaying correctly when the scrollpanel loses/gains width #9727
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
If you are using the primeng scrollpanel in a horizontal layout (e.g. a div on the left and the scroll panel on the right side) and change the width of the div, the scroll panel bars are not displayed correctly. They appear to use the "old" positions although they should be calculated new when the overall width of the scrollpanel changes.
Expected behavior
The scrollpanel should calculate the correct positions of the scrollpanel bars if the width of the scrollpanel itself changes.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
We want to use a Sidebar on the left side of our application. The sidebar can be expanded so the given menu entries get a label. Obviously the sidebar gains width and the corresponding "main content" on the right loses width. The whole "main content" is wrapped in a scrollpanel.
Please tell us about your environment:
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: