ScrollPanel has incorrect height setting in .ui-scrollpanel-content. #5396
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")
Plunkr Case (Bug Reports)
Just go to the demo page of primeng for ScrollPanel
https://www.primefaces.org/primeng/#/scrollpanel
Current behavior
Wrong height calculate for ui-scrollpanel-content class when use the default settings.
If you don't overwrite any CSS properties when using ScrollPanel, the content height will be hidden by 18px.
The first demo don't overwrite any CSS properties and the bottom 18px of content is hidden. (The text is visible because whole content has padding: 1em;. If you remove the padding the last line of text will be truncated.)
The last demo which overwrites CSS properties to show the x-axis scrollbar doesn't suffer from this bug.
Expected behavior
Currently I'm overwriting the default CSS properties to set height from calc(100%+18px) to 100%, but it should work just fine without any overwrites to make the default settings work.
Please tell us about your environment:
Angular version: 5.2.9
PrimeNG version: 5.2.3
Browser: Chrome 65.0.3325.162
The text was updated successfully, but these errors were encountered: