Class AbstractNativeScrollbar

    • Constructor Detail

      • AbstractNativeScrollbar

        public AbstractNativeScrollbar()
    • Method Detail

      • getNativeScrollbarHeight

        public static int getNativeScrollbarHeight()
        Get the height of a native horizontal scrollbar.

        This method assumes that all native scrollbars on the page have the same height.

        Returns:
        the height in pixels
      • getNativeScrollbarWidth

        public static int getNativeScrollbarWidth()
        Get the width of a native vertical scrollbar.

        This method assumes that all native vertical scrollbars on the page have the same width.

        Returns:
        the height in pixels
      • isScrollbarLeftAlignedInRtl

        public static boolean isScrollbarLeftAlignedInRtl()
        Check whether or not the native vertical scrollbar is aligned on the left side of the scrollable element in RTL mode.
        Returns:
        true if left aligned, false if not
      • getScrollableElement

        protected abstract Element getScrollableElement()
        Get the scrollable element.
        Returns:
        the scrollable element