class ScrollImpl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ScrollImpl.ScrollImplTrident
IE does not fire a scroll event when the scrollable element or the
container is resized, so we synthesize one as needed.
|
Constructor and Description |
---|
ScrollImpl() |
Modifier and Type | Method and Description |
---|---|
(package private) static ScrollImpl |
get()
Get the singleton instance of
ScrollImpl . |
int |
getMaximumHorizontalScrollPosition(Element scrollable)
Get the maximum horizontal scroll position.
|
int |
getMinimumHorizontalScrollPosition(Element scrollable)
Get the minimum horizontal scroll position.
|
void |
initialize(Element scrollable,
Element container)
Initialize a scrollable element.
|
boolean |
isRtl(Element scrollable)
Check if the specified element has an RTL direction.
|
static ScrollImpl get()
ScrollImpl
.public int getMaximumHorizontalScrollPosition(Element scrollable)
scrollable
- the scrollable elementpublic int getMinimumHorizontalScrollPosition(Element scrollable)
scrollable
- the scrollable elementpublic void initialize(Element scrollable, Element container)
scrollable
- the scrollable elementcontainer
- the containerpublic boolean isRtl(Element scrollable)
scrollable
- the scrollable element