AnsweredAssumed Answered

set the on-screen widget position programmatically

Question asked by lkoumis on Feb 24, 2017
Latest reply on Feb 27, 2017 by rscheitlin

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.

Outcomes