Skip to content

Commit bfa9a7f

Browse files
committed
Revert "firefox requires 'scroll' to be set" (marcj#110)
1 parent 2124961 commit bfa9a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResizeSensor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118

119119
element.resizeSensor = document.createElement('div');
120120
element.resizeSensor.className = 'resize-sensor';
121-
var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;';
121+
var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
122122
var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';
123123

124124
element.resizeSensor.style.cssText = style;

0 commit comments

Comments
 (0)