Select to view content in your preferred language

Panel Width

2876
2
Jump to solution
02-19-2013 09:23 AM
HaroldJohnson
Deactivated User
I have placed a widget panel on the right hand side of my application window to hold the layerlist widget but i want to make it wider. I have tried putting in width="300"  in the widget container tag but the width does not change:

<widgetcontainer paneltype="right" initialstate="collapsed" width="300">

Am I missing something.

Thanks

Harold
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Harold,

I had the same problem of not being able to get the width to change, so I looked through the source code and it appears the container is expecting an attribute of size not height or width. Try:

<widgetcontainer paneltype="right" initialstate="collapsed" size="300">

This does not seem to be in the documentation.

Regards

Anthony

View solution in original post

2 Replies
AnthonyGiles
Honored Contributor
Harold,

I had the same problem of not being able to get the width to change, so I looked through the source code and it appears the container is expecting an attribute of size not height or width. Try:

<widgetcontainer paneltype="right" initialstate="collapsed" size="300">

This does not seem to be in the documentation.

Regards

Anthony
HaroldJohnson
Deactivated User
Thanks Anthony that worked. It seems funny that the settings for the panel do not conform to how you set the height and width of a standard widget. Even the example on the attribute table widget in the reference shows height:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Attribute_Table_widget/01m30000...

Harold
0 Kudos