File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
services/static-webserver/client/source/class/osparc/support Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments