Jelajahi Sumber

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

Ahmad Kholid 1 tahun lalu
induk
melakukan
746c92610a
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  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';