Select to view content in your preferred language

ArcGIS Flex Viewer : Widget : ResizeToContent

2293
1
04-24-2014 02:05 AM
KeithMartyn
Emerging Contributor
Hi Friends,

I've been using ArcGIS Flex Source Code 3.6 and I'm trying to resize a widget (that has a Widget template with title bar and minimize, maximize buttons) to fit to the size of the contents inside the template. The content is dynamically injected based on the selection from a couple of drop down lists. The content can grow or shrink at run time. I want the widget to resize to its contents without showing any scrollbars. Is this possible? I cannot figure out how to do this. I tried setting the width and height properties on the template as well as the widget. The borders just vanishes and the widget becomes immovable. Can anyone kindly guide me to do this?

Thanks,
Keith Martyn
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Keith,

  This how I do it in some of my widgets:

wTemplate.widgetWidth = wTemplate.width = 530;
                    wTemplate.widgetHeight = wTemplate.height = 335;
0 Kudos