Recover "Fix issue in multi view(window) scenario" 42/258342/1 submit/tizen/20210513.160019
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 13 May 2021 14:20:36 +0000 (07:20 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 13 May 2021 14:21:44 +0000 (07:21 -0700)
This recovers commit ab17ff17c22bdacdd7948d33f57b6024cb37613e.

Change-Id: Icc803dc66a78bf4d3468973cba068b89eddb2774
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/src/web_application.ts

index 31f3915..6187903 100644 (file)
@@ -367,8 +367,11 @@ export class WebApplication {
     if (this.profileDelegate.backgroundExecutable()) {
       console.log('skip showing while backgroundExecution mode');
     } else if (!this.mainWindow.isVisible()) {
-      console.log('show window');
+      console.log(`show this.windowList.length : ${this.windowList.length}`);
       this.mainWindow.show();
+      if (this.windowList.length > 1) {
+        this.windowList[this.windowList.length - 1].moveTop();
+      }
     }
     this.profileDelegate.show();
   }