Hi Manish,
here is my code:
public function viewInfo() : Void
{
if(openInfo == false){
boxHeight = view.AufgabenBox.height;
dgHeight = view.AufgabenlistePanel.height;
infoHeight = view.aufgabenInfo.height;
infoInitialHeight = infoHeight;
var dauer = 250;
var parEffect = new Parallel();
// resize Info
var ie = new mx.effects.Resize(view.aufgabenInfo);
ie.heightFrom = infoHeight;
ie.heightTo = effectHeight;
ie.easing = easeInOutQuad();
ie.hideChildren = [view.aufgabenInfo];
ie.duration = dauer;
//resize DataGrid
var de = new Resize(view.AufgabenlistePanel);
de.heightFrom = dgHeight;
de.heightTo = dgHeight - effectHeight;
de.hideChildren = [view.AufgabenlistePanel];
de.duration = dauer;
parEffect.addChild(ie);
parEffect.addChild(de);
parEffect.playEffect();
view.AufgabenBox.height=boxHeight;
openInfo = true;
// Liste mit Aufgaben neu zeichnen lassen
view.AufgabenlistePanel.redraw(true);
}
else{}
}
The last line (view.AufgabenlistePanel.redraw(true);) doesn't work. I
followed the instructions in "Improving performance when resizing Panel
containers" in the flex documentation.
Any ideas?
Christoph
Manish Jethani wrote:
> On 4/12/05, Christoph Guse <[EMAIL PROTECTED]> wrote:
>
> > in my application there is a DataGrid in a Panel (panel1) with several
> > items in it. Under the DataGrid there is another panel (panel2) with a
> > box in it which becomes bigger, when an item in the DataGrid is clicked.
> > I resize the DataGrid and the box underneath. My problem is, that if
> > there are a lot of items in the DataGrid some of the items are cut,
>
> Set the DataGrid to resize with the Panel. Then the scrollbars should
> show up.
>
> <mx:Panel>
> <mx:DataGrid height="100%" />
> </mx:Panel>
> <!-- when the panel resizes, the datagrid will too -->
>
> I'm surprised that the Panel's scrollbars don't show up. If this
> doesn't work for you, post some code.
>
> --
> [EMAIL PROTECTED]
> http://manish.revise.org/
>
> ------------------------------------------------------------------------
> *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]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
--
****************************************
Christoph Guse
L�hstra�e 34
41747 Viersen
Tel. 0 21 62 / 50 24 066
Mobil 01 72 / 160 74 84
VoIP 0 12 12 / 39 64 48 831
****************************************
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/