Skip to content

Commit e1f3e04

Browse files
sag1vmarcj
authored andcommitted
max-width 100% for resize-sensor element (marcj#238)
1 parent eff187e commit e1f3e04

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
@@ -134,7 +134,7 @@
134134
element.resizeSensor = document.createElement('div');
135135
element.resizeSensor.dir = 'ltr';
136136
element.resizeSensor.className = 'resize-sensor';
137-
var style = 'position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
137+
var style = 'position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; max-width: 100%';
138138
var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';
139139

140140
element.resizeSensor.style.cssText = style;

0 commit comments

Comments
 (0)