mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
fixed a problem with window geometry setup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d8570aed9c
commit
a2bcc3744b
@ -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)
|
||||
|
||||
|
||||
6
ui (gen4)/package-lock.json
generated
6
ui (gen4)/package-lock.json
generated
@ -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"
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user