Skip to content

Commit fea3f4c

Browse files
committed
aesthetics
1 parent 9cf89fa commit fea3f4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/static-webserver/client/source/class/osparc/support/SupportCenter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ qx.Class.define("osparc.support.SupportCenter", {
4646
WINDOW_WIDTH: 430,
4747

4848
getMaxHeight: function() {
49-
// height: max 80% of screen, min 600
49+
// height: max 80% of screen, or 600px
5050
const clientHeight = document.documentElement.clientHeight;
51-
return Math.max(600, parseInt(clientHeight * 0.8));
51+
return Math.min(600, parseInt(clientHeight * 0.8));
5252
},
5353

5454
openWindow: function() {
@@ -61,8 +61,8 @@ qx.Class.define("osparc.support.SupportCenter", {
6161
// bottom right
6262
const clientWidth = document.documentElement.clientWidth;
6363
const clientHeight = document.documentElement.clientHeight;
64-
const posX = clientWidth - osparc.support.SupportCenter.WINDOW_WIDTH;
65-
const posY = clientHeight - supportCenterWindow.getHeight();
64+
const posX = clientWidth - osparc.support.SupportCenter.WINDOW_WIDTH - 4;
65+
const posY = clientHeight - supportCenterWindow.getHeight() - 4;
6666
supportCenterWindow.moveTo(posX, posY);
6767
};
6868
supportCenterWindow.open();

0 commit comments

Comments
 (0)