The postion of scrollbars in a {@link CustomScrollPanel} differs from that ofa native scrollable element. In a native element, scrollbars appear adjacent to the content, shrinking the content client height and width when they appear. {@link CustomScrollPanel} instead overlays scrollbars on top of thecontent, so the content does not change size when scrollbars appear. If the scrollbars obscures the content, you can set the padding-top
and padding-bottom
of the content to shift the content out from under the scrollbars.
NOTE: Unlike {@link ScrollPanel}, which implements {@link RequiresResize} butdoesn't really require it, {@link CustomScrollPanel} actually does requireresize and should only be added to a panel that implements {@link ProvidesResize}, such as most layout panels and {@link ResizeLayoutPanel}.
|
|