From: Youngsoo Choi Date: Thu, 13 May 2021 14:20:36 +0000 (-0700) Subject: Recover "Fix issue in multi view(window) scenario" X-Git-Tag: submit/tizen/20210513.160019^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e7f6364d026c14ea3b892b475d5da39a2fb1e02;p=platform%2Fframework%2Fweb%2Fwrtjs.git Recover "Fix issue in multi view(window) scenario" This recovers commit ab17ff17c22bdacdd7948d33f57b6024cb37613e. Change-Id: Icc803dc66a78bf4d3468973cba068b89eddb2774 Signed-off-by: Youngsoo Choi --- diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 31f39155..6187903c 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -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(); }