dialog-promise
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -143,4 +143,5 @@ "use strict"; | ||
dialogWindow.style.visibility='visible'; | ||
if(dialogWindow.offsetLeft+dialogWindow.offsetWidth>window.innerWidth){ | ||
dialogWindow.style.left=Math.max(rect.right-dialogWindow.offsetWidth,0)+'px'; | ||
var windowWidth = window.visualViewport && window.visualViewport.width ? window.visualViewport.width : window.innerWidth; | ||
if(dialogWindow.offsetLeft+dialogWindow.offsetWidth>windowWidth){ | ||
dialogWindow.style.left=Math.max(rect.left+rect.width-dialogWindow.offsetWidth,0)+'px'; | ||
dialogWindow.style.borderColor='red'; | ||
@@ -147,0 +148,0 @@ dialogWindow.setAttribute('docked','under-right'); |
{ | ||
"name": "dialog-promise", | ||
"description": "Dialog that returns promises", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "repository": "codenautas/dialog-promise", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
32891
548
0