Remove remaining inline display style.
It caused regression bugs.
This commit is contained in:
parent
f9c3dc0b20
commit
1849e64122
@ -163,7 +163,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateCss() {
|
function updateCss() {
|
||||||
var xRailOffset = {width: containerWidth, display: scrollbarXActive ? "inherit" : "none"};
|
var xRailOffset = {width: containerWidth};
|
||||||
if (isRtl) {
|
if (isRtl) {
|
||||||
xRailOffset.left = $this.scrollLeft() + containerWidth - contentWidth;
|
xRailOffset.left = $this.scrollLeft() + containerWidth - contentWidth;
|
||||||
} else {
|
} else {
|
||||||
@ -176,7 +176,7 @@
|
|||||||
}
|
}
|
||||||
$scrollbarXRail.css(xRailOffset);
|
$scrollbarXRail.css(xRailOffset);
|
||||||
|
|
||||||
var railYOffset = {top: $this.scrollTop(), height: containerHeight, display: scrollbarYActive ? "inherit" : "none"};
|
var railYOffset = {top: $this.scrollTop(), height: containerHeight};
|
||||||
|
|
||||||
if (isScrollbarYUsingRight) {
|
if (isScrollbarYUsingRight) {
|
||||||
if (isRtl) {
|
if (isRtl) {
|
||||||
|
Loading…
Reference in New Issue
Block a user