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=groups/S=1705007207:HM/EXP=1111078124/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 ****************************************

