That's no good, sorry! Maybe try playing with the minHeight and maxHeight properties of the title window? Or maybe you need to explicitly call invalidate on the TitleWindow to force it into re-measuring? I don't have a 1.5 install set up right now to play around.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Wednesday, April 05, 2006 5:02 AM To: [email protected] Subject: [flexcoders] RE: Second instance of TitleWindow with Repeater inside doesn't resize You can also try out this code for pop up: <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:view="com.sonopia.sonoportal.controls.siteBuilder.portletEditor.*" panelBorderStyle="roundCorners"> <mx:Repeater id="myRepeater" dataProvider="{new Array(1)}"> <mx:TextInput focusIn="myRepeater.dataProvider.addItem(0)" /> </mx:Repeater> </mx:TitleWindow> It works correctly when placed as a regular panel on stage, but when I create it as a pop up adding new instances of TextInput fails, while the dataProvider changes that could be easily verified via logging its length. Sergey. -----Original Message----- From: Sergey Kovalyov [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 2:36 PM To: '[email protected]' Subject: Second instance of TitleWindow with Repeater inside doesn't resize Hi Flexcoders! I have the TitleWindow with Repeater inside and when I create two instances of it using PopUpManager.createPopUp() or one as fixed Panel and another one as pop up, the second instance doesn't resize upon Generate button click that means changing dataprovider. Somewhen, not in this particular example, using Repeater in TitleWindow doesn't cause resize when dataprovider changes too. Here you can see the source of TitleWindow I say about: <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" panelBorderStyle="roundCorners" creationComplete="onCreationComplete()"> <mx:Script> <![CDATA[ public var array : Array; public function onCreationComplete() : Void { array = new Array(1); } public function onGenerate() : Void { array.addItem(0); } ]]> </mx:Script> <mx:VBox width="100%" height="100%" borderStyle="solid"> <mx:Repeater dataProvider="{array}"> <mx:VBox width="100%" height="100%" borderStyle="solid"> <mx:TextInput /> </mx:VBox> </mx:Repeater> </mx:VBox> <mx:Button label="Generate" click="onGenerate()" /> </mx:TitleWindow> In case the code above saved as MyTitleWindow.mxml, the problem can be reproduced via this code: var w1 : MyTitleWindow = MyTitleWindow(PopUpManager.createPopUp(this, MyTitleWindow, false)); var w2 : MyTitleWindow = MyTitleWindow(PopUpManager.createPopUp(this, MyTitleWindow, false)); Regards, Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

