I use the _setDesktopPosition function used in the OnScreenWidget.js in my custom widget.js to set the position of a panel at start up but it ignores it.
Ideas?
startup: function () {
html.place(this.domNode, jimuConfig.mapId);
html.setStyle(this.domNode, {
left: 100 + 'px',
right: 'auto',
top: 100 + 'px',
// width: (position.width || this.position.width || this._originalBox.w) + 'px',
// height: (position.height || this.position.height || this._originalBox.h) + 'px'
});
--- -------
---------
},
thank you.
Solved! Go to Solution.
Lefteris,
When using the launchpad theme you should use:
startup: function() {
this.inherited(arguments);
var position = {
relativeTo: map,
left: 277,
top: 225,
width: 300,
height: 420
};
this.getPanel().setPosition(position);
},
Does anyone know what needs to be done to achieve this in the tab theme?
Thanks
Mark,
Have you tried the above?