Explorar o código

fix: invalid window bounds when open dashboard (#1253)

Ahmad Kholid %!s(int64=2) %!d(string=hai) anos
pai
achega
746c92610a
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/background/BackgroundUtils.js

+ 4 - 2
src/background/BackgroundUtils.js

@@ -26,13 +26,15 @@ class BackgroundUtils {
         }
       } else {
         const windowOptions = {
+          top: 0,
+          left: 0,
+          width: 715,
+          height: 715,
           url: tabUrl,
           type: 'popup',
         };
 
         if (updateTab) {
-          windowOptions.height = 715;
-          windowOptions.width = 715;
           windowOptions.focused = true;
         } else {
           windowOptions.state = 'minimized';