perfect RTL support

This commit is contained in:
ahspw
2015-05-08 14:06:55 +03:00
committed by Hyunje Alex Jun
parent db855ceca1
commit 3dbf20a5d0
6 changed files with 19 additions and 6 deletions

View File

@@ -11,6 +11,9 @@ var d = require('../lib/dom')
module.exports = function (element) {
var i = instances.get(element);
// Recalcuate negative scrollLeft adjustment
i.negativeScrollAdjustment = i.isNegativeScroll ? element.scrollWidth - element.clientWidth : 0;
// Recalculate rail margins
d.css(i.scrollbarXRail, 'display', 'block');
d.css(i.scrollbarYRail, 'display', 'block');