From 513f358e3e834348f3eac71f56d911752122c009 Mon Sep 17 00:00:00 2001 From: "Marc J. Schmidt" Date: Tue, 9 Jan 2018 15:23:28 +0100 Subject: [PATCH] Fixed typo in getting `position` of the element --- src/ResizeSensor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResizeSensor.js b/src/ResizeSensor.js index 2ee0d5f..0846014 100755 --- a/src/ResizeSensor.js +++ b/src/ResizeSensor.js @@ -144,7 +144,7 @@ ''; 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'; }