@glomex/glomex-dialog
Advanced tools
Comparing version 1.10.1 to 1.10.2
@@ -81,5 +81,12 @@ const NON_VISIBLE_WIDTH = window.innerWidth < 720 ? 320 : 640; | ||
element.style.height = `${height}px`; | ||
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) { | ||
// somehow safari animates to the wrong position initially | ||
// and then snaps into place when the aspect-ratio is not stable | ||
element.style.minHeight = `${toHeight}px`; | ||
} | ||
element.style.top = `${fromRect.top + visualViewport.offsetTop}px`; | ||
element.style.left = `${fromRect.left + visualViewport.offsetLeft}px`; | ||
element.style.transform = 'scale(1.001)'; | ||
element.style.overflow = 'hidden'; | ||
@@ -86,0 +93,0 @@ window.requestAnimationFrame(() => { |
{ | ||
"name": "@glomex/glomex-dialog", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"description": "A dialog web component that allows docking a video player or putting it in a lightbox", | ||
@@ -5,0 +5,0 @@ "type": "module", |
101625
817