windows pos & size in prefs

This commit is contained in:
STEINNI
2025-10-08 12:51:01 +00:00
parent db3d10539a
commit 93de6045e3
5 changed files with 78 additions and 47 deletions
+19 -8
View File
@@ -29,6 +29,12 @@ class DashboardsController extends EICController {
//TODO: eventsMapping: address child by suffix in assignations
let left = app.User.preferences?.windows?.live?.spaceview?.['3D']?.x ? app.User.preferences.windows.live.spaceview['3D'].x :100
let top = app.User.preferences?.windows?.live?.spaceview?.['3D']?.y ? app.User.preferences.windows.live.spaceview['3D'].y :50
let width = app.User.preferences?.windows?.live?.spaceview?.['3D']?.w ? app.User.preferences.windows.live.spaceview['3D'].w :600
let height = app.User.preferences?.windows?.live?.spaceview?.['3D']?.h ? app.User.preferences.windows.live.spaceview['3D'].h :450
this.loadWindow(
'visualisers/SpaceView',
{
@@ -37,10 +43,10 @@ class DashboardsController extends EICController {
expanded: false,
withSettings: true,
windowStyle:{
width: '800px',
height: '600px',
left: '50px',
top: '100px',
width: `${width}px`,
height: `${height}px`,
left: `${left}px`,
top: `${top}px`,
}
},
{
@@ -51,6 +57,11 @@ class DashboardsController extends EICController {
ttb: ttb,
}
)
left = app.User.preferences?.windows?.live?.spaceview?.['2D']?.x ? app.User.preferences.windows.live.spaceview['2D'].x :500
top = app.User.preferences?.windows?.live?.spaceview?.['2D']?.y ? app.User.preferences.windows.live.spaceview['2D'].y :100
width = app.User.preferences?.windows?.live?.spaceview?.['2D']?.w ? app.User.preferences.windows.live.spaceview['2D'].w :600
height = app.User.preferences?.windows?.live?.spaceview?.['2D']?.h ? app.User.preferences.windows.live.spaceview['2D'].h :450
this.loadWindow(
'visualisers/SpaceView',
{
@@ -59,10 +70,10 @@ class DashboardsController extends EICController {
expanded: false,
withSettings: true,
windowStyle:{
width: '600px',
height: '450px',
right:'10px',
top:'100px',
width: `${width}px`,
height: `${height}px`,
left: `${left}px`,
top: `${top}px`,
}
},
{