diff --git a/core-dropdown.html b/core-dropdown.html index d05c1b9..343f723 100644 --- a/core-dropdown.html +++ b/core-dropdown.html @@ -173,13 +173,17 @@ // corner of the screen target.style.position = 'fixed'; target.style.left = '0px'; + target.style.right = 'auto'; target.style.top = '0px'; + target.style.bottom = 'auto'; var rect = target.getBoundingClientRect(); target.style.position = pos; target.style.left = null; + target.style.right = null; target.style.top = null; + target.style.bottom = null; return rect; },