File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
services/static-webserver/client/source/class/osparc/info Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -392,10 +392,10 @@ qx.Class.define("osparc.info.ServiceLarge", {
392392
393393 __createThumbnail : function ( maxWidth , maxHeight = 160 ) {
394394 // make sure maxs are not larger than the mins
395- const enforcedMinWidth = Math . max ( 120 , maxWidth ) ;
396- const enforcedMinHeight = Math . max ( 139 , maxHeight ) ;
397- maxWidth = Math . max ( enforcedMinWidth , maxWidth ) ;
398- maxHeight = Math . max ( enforcedMinHeight , maxHeight ) ;
395+ const minWidth = Math . max ( 120 , maxWidth ) ;
396+ const minHeight = Math . max ( 139 , maxHeight ) ;
397+ maxWidth = Math . max ( minWidth , maxWidth ) ;
398+ maxHeight = Math . max ( minHeight , maxHeight ) ;
399399
400400 const serviceData = this . getService ( ) ;
401401 const thumbnail = osparc . info . Utils . createThumbnail ( maxWidth , maxHeight ) ;
You can’t perform that action at this time.
0 commit comments