Hi Matt,

thanks for your help. I changed my design, it works now.

Greets
Christoph

Matt Chotin schrieb:

No real other ideas off-hand, and no time to experiment, sorry!

Matt

-----Original Message-----
From: Christoph Guse [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 16, 2005 1:18 PM
To: [email protected]
Subject: Re: [flexcoders] List / DataGrid height problem


Hi Matt,

i tried a real value and undefined instead of 100%, didn't help. Perhaps
you have another idea, otherwise I have to change my layout. I prefer
the first option ;-)

Good night
Christoph

Matt Chotin schrieb:

> I'm not sure that the percentages are really going to work within a
> cell renderer. Basically if you have a preferred height the row will
> size to that row. But if you give it a percentage the row doesn't know
> how tall you really are meant to be. So maybe try using a real value
> instead of 100%? Even undefined might actually be the right value so
> that it tries to size to the preferred size of the children.
>
> Matt
>
> ------------------------------------------------------------------------
>
> *From:* Christoph Guse [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, March 16, 2005 9:43 AM
> *To:* [email protected]
> *Subject:* Re: [flexcoders] List / DataGrid height problem
>
> Hi Matt,
>
> you are right. I give you some snippets of my code.
>
> List / DataGrid
>
> <mx:List id="Aufgabenliste" width="100%" height="100%"
> variableRowHeight="true" dataProvider="{aufgabenData}"
> cellRenderer="aufgaben.AufgabenCellRenderer"></mx:List>
> <!-- <mx:DataGrid id="Aufgabenliste" width="100%" height="100%"
> variableRowHeight="true">
> <mx:dataProvider>
> {aufgabenData}
> </mx:dataProvider>
> <mx:columns>
> <mx:Array>
> <mx:DataGridColumn headerText="{gridTitle}"
> cellRenderer="aufgaben.AufgabenCellRenderer" />
> </mx:Array>
> </mx:columns>
> </mx:DataGrid>
>
> Part of my CellRenderer (AufgabenCellRenderer)
>
> function doResize(){
> var aufgViewHelper =
> ViewLocator.getInstance().getViewHelper( "aufgabenView" );
> if(close){
> aufgabePanel.height="100%";
> close = false;
> state = "schlie�en";
> }
> else{
> aufgabePanel.height=28;
> close = true;
> state = "�ffnen";
> }
> aufgViewHelper.refreshList(this);
> }
>
> ]]>
> </mx:Script>
>
> <mx:Panel id="aufgabePanel" title="{name}" status="{state}"
> height="28" width="100%" mouseDown="doResize()">
> <mx:Form>
> <mx:FormItem label="Anfang">
> <mx:Label text="{startDate}" />
> </mx:FormItem>
> <mx:FormItem label="fertig bis">
> <mx:Label text="{endDate}"></mx:Label>
> </mx:FormItem>
> <mx:FormItem label="Priorit�t">
> <mx:Label text="{priority}" />
> </mx:FormItem>
> <mx:FormItem label="Status" >
> <mx:Label text="{status}" />
> </mx:FormItem>
> </mx:Form>
> </mx:Panel>
>
> I should mention, that the List / DataGrid is in a HBox beside another
> List. If I change the size of one of the lists the row with the
> CellRenderer is shown correctly once, then the height of the row is
> static again.
> Can I broadcast the HBox change event manually?
>
> Greets
> Christoph
>
> Matt Chotin schrieb:
>
>> I assume you have variableRowHeight set to true?
>>
>> -----Original Message-----
>> From: Christoph Guse [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 16, 2005 1:48 AM
>> To: [email protected]
>> Subject: [flexcoders] List / DataGrid height problem
>>
>>
>> Hi List,
>>
>> I have some trouble with my custom CellRenderer. It is Panel wich
>> expands when you click on it. The initial height is 28pt and when it
>> expands, it has the height it needs.
>> The Problem is, that when you click on it, the Panel expands as
>> expected, but the row height doesn't change. I only get a scrollbar on
>> the right side of the row. I tried several things, like draw() the list,
>> but nothing helped.
>>
>> Any ideas?
>>
>> Thanks a lot
>> Christoph
>>
>> --
>> ****************************************
>> 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
>>
>>
>>
>>
>>
>>
>>
>>
>> *Yahoo! Groups Sponsor*
>> ADVERTISEMENT
>> click here
>>
<http://us.ard.yahoo.com/SIG=129sq9p52/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1111078124/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075
>
<http://us.ard.yahoo.com/SIG=129sq9p52/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1111078124/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
etflix.com/Default?mqso=60190075>>
>
>>
>>
>>
>> ------------------------------------------------------------------------
>> *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 Sponsor*
> ADVERTISEMENT
> click here
>
<http://us.ard.yahoo.com/SIG=129lgq2ib/M=298184.6191685.7192823.3001176/D=gr
oups/S=1705007207:HM/EXP=1111093419/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075>
>
>
>
> ------------------------------------------------------------------------
> *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








*Yahoo! Groups Sponsor*
ADVERTISEMENT
click here <http://us.ard.yahoo.com/SIG=1295haqk0/M=298184.6191685.7192823.3001176/D=groups/S=1705007207:HM/EXP=1111102309/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>




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





Reply via email to