Display MoreQuoted from "s-maier"
However I notice some big diffrence: The Scrollarea even displays the scrollbars when there is nothing to scroll.
This is very counter intuitive and kinda annoying.I assume you mean the new autoscrollbars feature - that's only for automatic controlling and sizing the scrollbars, but they will not change the layout of the scrollarea or other layers.
For checking if scrollbars are required, the onoverflowchange event and the woverflow / hoverflow variables can be used. When the values are greater than 0, then the content is overflowing and a scrollbar would be required.
Source code1
onoverflowchange="if(hoverflow GT 0, show the scrollbar, adjust the layout..., hide the scrollbar... );"
Oh brilliant, I didn't see the "onoverflowchange" and worked on a much more complicated solution. Thanks!