WAB: change size of Edit popup window ?

1173
4
Jump to solution
09-15-2016 07:49 AM
helenchu
Occasional Contributor II

I'd like to make the Edit popup window a lot smaller so it won't block much of my map view.  I played with a few numbers in Widgets->Edit -> style.css but it doesn't work.  

I'd also  like to change the word "Close" to "Save & Close" on the attribute edit button.  I can't locate it.

Thank you.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Helen,

   You can adjust the size of a widgets panel by adding a width and height property to the main config.json depending on which theme you are using.

View solution in original post

4 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Helen,

  The edit popups size is controlled by the edit Widget.js file on line 500:

this.editPopup.resize(500, 251);

and the string "close" and be changed in the widgets nls\strings.js

close: "Close",
helenchu
Occasional Contributor II

I got the text "Close" changed.  For the editPopup size, I probably used the wrong name for it.  What I'd like to have the size reduced is the (spatial) feature edit template/window not the attribute window.  

this.editPopup.resize(500, 251);

resize the attribute window only.  

Thank you Robert

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Helen,

   You can adjust the size of a widgets panel by adding a width and height property to the main config.json depending on which theme you are using.

helenchu
Occasional Contributor II

I got it!  Thanks Robert.

0 Kudos