Select to view content in your preferred language

WAB: change size of Edit popup window ?

2286
4
Jump to solution
09-15-2016 07:49 AM
helenchu
Frequent Contributor

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 Emeritus

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 Emeritus

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
Frequent Contributor

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 Emeritus

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
Frequent Contributor

I got it!  Thanks Robert.

0 Kudos