Skip to content

Commit 513f358

Browse files
committed
Fixed typo in getting position of the element
1 parent 2d677ef commit 513f358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResizeSensor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
'</div>';
145145
element.appendChild(element.resizeSensor);
146146

147-
var position = window.getComputedStyle(element).getPropertyPriority('position');
147+
var position = window.getComputedStyle(element).getPropertyValue('position');
148148
if ('absolute' !== position && 'relative' !== position && 'fixed' !== position) {
149149
element.style.position = 'relative';
150150
}

0 commit comments

Comments
 (0)