[flexcoders] Dimensions of a UIComponent are allways 0, 0?!

2008-10-01 Thread florian.salihovic
I have a UIComponent which Dimensions never change?! When i add a child in the overriden createChildren i expect the dimensions to be changed... but nothing happens... override protected function createChildren():void { super.createChildren(); if (!this._uibase) { this._uibase = new UIBase();

Re: [flexcoders] Dimensions of a UIComponent are allways 0, 0?!

2008-10-01 Thread Michael Schmalle
Hi, Search the archives for this, I know I have explained it quite a bit. :) If you can't find it there read up on Creating Custom Components. You problem has to do with the fact you have not overridden measure() and set measuredWidth and measuredHeight of you component. If you don't do this,