Skip to content

Commit a2f12d9

Browse files
Alberto VillaAlberto Villa
authored andcommitted
Force 'expand' child to have no transitions
If its size update were animated, the element could become smaller than its parent, thus making impossible to scroll 'expand' to bottom on further 'scroll' events and breaking the sensor.
1 parent b4b0625 commit a2f12d9

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
@@ -65,7 +65,7 @@
6565
element.resizeSensor = document.createElement('div');
6666
element.resizeSensor.className = 'resize-sensor';
6767
var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
68-
var styleChild = 'position: absolute; left: 0; top: 0;';
68+
var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';
6969

7070
element.resizeSensor.style.cssText = style;
7171
element.resizeSensor.innerHTML =

0 commit comments

Comments
 (0)