PL-8104 OpenType.NEW_WINDOW mode for the web client must work like the NEW_TAB mode

This commit is contained in:
Yuriy Artamonov 2016-10-31 11:30:33 +04:00
parent dc7c052ea7
commit 1e80e261b6

View File

@ -168,6 +168,7 @@ public class WebWindowManager extends WindowManager {
if (openInfo != null) {
OpenMode openMode = openInfo.getOpenMode();
if (openMode == OpenMode.NEW_TAB
|| openMode == OpenMode.NEW_WINDOW
|| openMode == OpenMode.THIS_TAB) {
// show in tabsheet
Layout layout = (Layout) openInfo.getData();
@ -955,6 +956,8 @@ public class WebWindowManager extends WindowManager {
fireListeners(window, tabs.size() != 0);
break;
}
case NEW_WINDOW:
case NEW_TAB: {
final Layout layout = (Layout) openInfo.getData();
layout.removeComponent(WebComponentsHelper.getComposition(window));