For the given scrollLeft value this method returns the scrollLeft value as understood by the current browser in RTL mode. This value is specific to the given DOM element, as the computation may involve its dimensions.
So when oDomRef should be scrolled 2px from the leftmost position, the number "2" must be given as iNormalizedScrollLeft
and the result of this method (which may be a large or even negative number, depending on the browser) can then be set as oDomRef.scrollLeft
to achieve the desired (cross-browser-consistent) scrolling position.
This method does no scrolling on its own, it only calculates the value to set (so it can also be used for animations).
Param | Type | Default Value | Description |
---|---|---|---|
iNormalizedScrollLeft | int | The distance from the leftmost position to which the element should be scrolled | |
oDomRef | Element | The DOM Element to which scrollLeft will be applied |
Method | Description |
---|