diff --git a/ui (gen4)/features/app.js b/ui (gen4)/features/app.js index f23f730a..2c0ad610 100755 --- a/ui (gen4)/features/app.js +++ b/ui (gen4)/features/app.js @@ -447,6 +447,7 @@ var WindowedAppControlActions = actions.Actions({ this.stop() window.close() }], + storeWindowGeometry: ['- Window/Store window state', function(){ // store window parameters (size, state)... @@ -554,8 +555,8 @@ module.WindowedAppControl = core.ImageGridFeatures.Feature({ if(cfg){ var W = screen.width var H = screen.height - var w = cfg.width || Math.max(0.8 * W, 600) - var h = cfg.height || Math.max(0.8 * H, 400) + var w = cfg.width || Math.round(Math.max(0.8 * W, 600)) + var h = cfg.height || Math.round(Math.max(0.8 * H, 400)) var x = cfg.x || Math.round((W - w)/2) var y = cfg.y || Math.round((H - h)/2) diff --git a/ui (gen4)/package-lock.json b/ui (gen4)/package-lock.json index 87bdc6e1..37111deb 100755 --- a/ui (gen4)/package-lock.json +++ b/ui (gen4)/package-lock.json @@ -1252,9 +1252,9 @@ "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" }, "ig-actions": { - "version": "3.22.0", - "resolved": "https://registry.npmjs.org/ig-actions/-/ig-actions-3.22.0.tgz", - "integrity": "sha512-pyZpA/3tdXrfHUyWKq/tvOGjLDHqsPD/jaO7Jl2qRsfrCgmK6Tof/3POwl+O8j/W0wD3EH25xLitkR+Hvo9q/Q==", + "version": "3.22.2", + "resolved": "https://registry.npmjs.org/ig-actions/-/ig-actions-3.22.2.tgz", + "integrity": "sha512-q0CPAS6SgkYMFIIVVwzbsgRsDSA7bD1kstWHC1SaWXI4szrvaAlVPV1QX9MtMmH4Ju+Ar1ilh1a3Ooe5wngYUg==", "requires": { "ig-object": "^1.0.7" } diff --git a/ui (gen4)/package.json b/ui (gen4)/package.json index b663569e..6f52b5c9 100755 --- a/ui (gen4)/package.json +++ b/ui (gen4)/package.json @@ -27,7 +27,7 @@ "fs-walk": "^0.0.1", "glob": "^4.0.6", "guarantee-events": "^1.0.0", - "ig-actions": "^3.22.0", + "ig-actions": "^3.22.2", "ig-features": "^3.3.4", "ig-object": "^1.2.0", "moment": "^2.23.0",