windows pos & size in prefs
This commit is contained in:
@@ -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`,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user