Class NativeHorizontalScrollbar

    • Field Detail

      • contentDiv

        @UiField
        Element contentDiv
        The div inside the scrollable div that forces scrollbars to appear.
      • scrollable

        @UiField
        Element scrollable
        The scrollable div used to create a scrollbar.
    • Method Detail

      • getScrollWidth

        public int getScrollWidth()
        Get the width in pixels of the scrollable content that the scrollbar controls.

        This is not the same as the maximum scroll left position. The maximum scroll position equals the scrollWidth - offsetWidth;

        Specified by:
        getScrollWidth in interface HorizontalScrollbar
        Returns:
        the scroll width
        See Also:
        setScrollWidth(int)
      • setScrollWidth

        public void setScrollWidth​(int width)
        Set the width in pixels of the scrollable content that the scrollbar controls.

        This is not the same as the maximum scroll left position. The maximum scroll position equals the scrollWidth - offsetWidth;

        Specified by:
        setScrollWidth in interface HorizontalScrollbar
        Parameters:
        width - the size width pixels
      • getNativeHeight

        protected int getNativeHeight()
        Get the height of the scrollbar.
        Returns:
        the height of the scrollbar in pixels