Skip to content

Commit 3f4ec68

Browse files
committed
open too small dialog
1 parent 7f7d23d commit 3f4ec68

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

services/static-webserver/client/source/class/osparc/WindowSizeTracker.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ qx.Class.define("osparc.WindowSizeTracker", {
5555
},
5656

5757
members: {
58+
__tooSmallDialog: null,
5859
__lastRibbonMessage: null,
5960

6061
startTracker: function() {
@@ -77,7 +78,14 @@ qx.Class.define("osparc.WindowSizeTracker", {
7778
}
7879

7980
if (width < this.self().MIN_WIDTH_LOGOUT) {
80-
osparc.TooSmallDialog.openWindow();
81+
if (this.__tooSmallDialog) {
82+
this.__tooSmallDialog.center();
83+
this.__tooSmallDialog.open();
84+
} else {
85+
this.__tooSmallDialog = osparc.TooSmallDialog.openWindow();
86+
}
87+
} else if (this.__tooSmallDialog) {
88+
this.__tooSmallDialog.close();
8189
}
8290

8391
this.set({

0 commit comments

Comments
 (0)