Skip to content

Commit a062c2b

Browse files
committed
Fix marcj#63 Use overflow: hidden instead of scroll
1 parent dd7e4cb commit a062c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResizeSensor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
element.resizeSensor = document.createElement('div');
6666
element.resizeSensor.className = 'resize-sensor';
67-
var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;';
67+
var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
6868
var styleChild = 'position: absolute; left: 0; top: 0;';
6969

7070
element.resizeSensor.style.cssText = style;
@@ -114,7 +114,7 @@
114114
el.addEventListener(name, cb);
115115
}
116116
};
117-
117+
118118
var onScroll = function() {
119119
if (element.offsetWidth != lastWidth || element.offsetHeight != lastHeight) {
120120
changed();

0 commit comments

Comments
 (0)