Keeping custom widget designer centered

Posted by Community Admin on 04-Aug-2018 20:57

Keeping custom widget designer centered

All Replies

Posted by Community Admin on 07-Dec-2015 00:00

Hi,

I'm developing some custom widgets in SF 8.2.  I've established that you can set widths and height using dialogBase.setWndHeight() and dialogBase.setWndWidth(), but how do you keep the designer centered after the width has been defined?

I can re-center using javascript in the refreshUI method but when I click on advanced, the designer positions to the left, and then when I click back on simple, the designer positions to the right.

Is there a javascript method/event i can use to re-position the designer in the center?

While I'm typing...how do I add the 'add content' icon in default widgets as below:

http://i.imgur.com/Sm6B5Ss.png

 

I hope what I'm asking makes sense!

 

 

This thread is closed