Layer List widget window size - how do I increase the size of the widget window

4131
5
Jump to solution
06-25-2013 09:57 AM
NatalieBuchwald
New Contributor III
I am trying to increase the size of my Layer List widget window in my application. This is a float widget in a widget container. I am building with Flex viewer 3.3 and I can't find any documentation on how to do this. I can find information on how to position the window but not on how to increase the size of the window, any help?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MattPohl
Occasional Contributor II
Natalie-

Just add the Width and Height tag to your config.xml file inside the widget container for the Layer List Widget.

Example:

<widget label="Layer List" x="50" y="100"
         height="500"
                width="500"
  icon="assets/images/i_layers.png"
  config="widgets/LayerList/LayerListWidget.xml"
  url="widgets/LayerList/LayerListWidget.swf"/>


~Matt

View solution in original post

0 Kudos
5 Replies
MattPohl
Occasional Contributor II
Natalie-

Just add the Width and Height tag to your config.xml file inside the widget container for the Layer List Widget.

Example:

<widget label="Layer List" x="50" y="100"
         height="500"
                width="500"
  icon="assets/images/i_layers.png"
  config="widgets/LayerList/LayerListWidget.xml"
  url="widgets/LayerList/LayerListWidget.swf"/>


~Matt
0 Kudos
NatalieBuchwald
New Contributor III
Thank you so much Matt! I'm not that familiar with XML so because I didn't see the Height & Width already being set it didn't even occur to me to add that. Anyway, thank you for your help & insight it is much appreciated!
0 Kudos
DavidYarnell
New Contributor III

Is there a way to change that size programically?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

David,

  see this thread:

How resize widget at runtime (by code)

DavidYarnell
New Contributor III

Thanks Robert!

0 Kudos