Skip to content

Commit 9fe2fbf

Browse files
jpradellemarcj
authored andcommitted
Add support of sticky position on ResizeSensor (#277)
1 parent 7d0ffa0 commit 9fe2fbf

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
@@ -195,7 +195,7 @@
195195

196196
var computedStyle = window.getComputedStyle(element);
197197
var position = computedStyle ? computedStyle.getPropertyValue('position') : null;
198-
if ('absolute' !== position && 'relative' !== position && 'fixed' !== position) {
198+
if ('absolute' !== position && 'relative' !== position && 'fixed' !== position && 'sticky' !== position) {
199199
element.style.position = 'relative';
200200
}
201201

0 commit comments

Comments
 (0)