mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-18 12:39:22 +00:00
Fixed: test for fixed scrollbars was broken by a previous commit.
This commit is contained in:
1 parent
f3f1f72ae2
commit
bdd29936d7
1 file changed
+8
-6
@@ -53,17 +53,19 @@ var _isSystemUsingOverlayScrollers = function()
|
||||
outer.appendChild(inner);
|
||||
|
||||
document.body.appendChild(outer);
|
||||
outer.style.overflow = "scroll";
|
||||
|
||||
var width1 = inner.offsetWidth,
|
||||
width2 = inner.offsetWidth;
|
||||
var w1 = inner.offsetWidth;
|
||||
|
||||
if (width1 === width2)
|
||||
width2 = outer.clientWidth;
|
||||
outer.style.overflow = 'scroll';
|
||||
|
||||
var w2 = inner.offsetWidth;
|
||||
|
||||
if (w1 === w2)
|
||||
w2 = outer.clientWidth;
|
||||
|
||||
document.body.removeChild(outer);
|
||||
|
||||
return (width1 - width2 === 0);
|
||||
return (w1 === w2);
|
||||
#else
|
||||
return NO;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user