Skip to content

Commit

Permalink
Fixed typo in getting position of the element
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Jan 9, 2018
1 parent 2d677ef commit 513f358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResizeSensor.js
Expand Up @@ -144,7 +144,7 @@
'</div>';
element.appendChild(element.resizeSensor);

var position = window.getComputedStyle(element).getPropertyPriority('position');
var position = window.getComputedStyle(element).getPropertyValue('position');
if ('absolute' !== position && 'relative' !== position && 'fixed' !== position) {
element.style.position = 'relative';
}
Expand Down

0 comments on commit 513f358

Please sign in to comment.