[flexcoders] Custom PopUp not resizing.

2009-10-08 Thread flexaustin
I have a custom popup based on mx:Box.  In it I have a dropdown. In this list 
dropdown you can select multiple items that once items are selected they stay 
in the dropdowns selected box (think multiselect combobo box). My custom pop 
has a width and height set to 300 by 300;

Anyway, when I select several items the pop (not the dropdownlist) starts 
adding scrollbars when there are to many.  If I set the horizontalscrollpolicy 
and verticallscrollpolicy to off then the pop start moving out of what looks 
like the popups viewablearea/scrollRect?
So as the selecteditems in my dropdown gets longer the top of the popup start 
disappearing?

Does the popupmanager need to know to increase its viewable area for the popup? 
Or is it possible to have a popup increase in size?





RE: [flexcoders] Custom PopUp not resizing.

2009-10-08 Thread Alex Harui
Popups are a special case.  Panel/TitleWindow know when they've been popped up 
and resize themselves.  You'll have to teach your Box to do the same.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Thursday, October 08, 2009 2:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom PopUp not resizing.



I have a custom popup based on mx:Box. In it I have a dropdown. In this list 
dropdown you can select multiple items that once items are selected they stay 
in the dropdowns selected box (think multiselect combobo box). My custom pop 
has a width and height set to 300 by 300;

Anyway, when I select several items the pop (not the dropdownlist) starts 
adding scrollbars when there are to many. If I set the horizontalscrollpolicy 
and verticallscrollpolicy to off then the pop start moving out of what looks 
like the popups viewablearea/scrollRect?
So as the selecteditems in my dropdown gets longer the top of the popup start 
disappearing?

Does the popupmanager need to know to increase its viewable area for the popup? 
Or is it possible to have a popup increase in size?