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

<*> 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/
 


Reply via email to