More in this section
Forums / Developing with Sitefinity / Keeping custom widget designer centered

Keeping custom widget designer centered

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Jon
    Jon avatar
    1 posts
    07 Dec 2011
    07 Dec 2015
    Link to this post


    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 do I add the 'add content' icon in default widgets as below:


    I hope what I'm asking makes sense!



1 posts, 0 answered