Hi,

I have written a component extending VBox and containting 2 labels,
this component is a popup, the problem i have is that the component
does not scale if i dont set the width and height of it it defaults to
0?

And the labels inside it dont want to provide me their size too, when
I do label.width or label.textWidth it always returns 0 even if the
text is not null?

I also set autosize = true; nothing works how can I make this
components scale dynamically ?

public class VizDetailCloud extends VBox {
        public var fieldName:String;
        public var fieldSizeEncoding:String;
        public var fieldColorEncoding:String;
..

        public functionVizDetailCloud() {
            super();
..
            autoLayout = true;
        }

public function position(..):void {
            ..
            width = 125; // if this is not set it defaults to 0 even
with the content not null
            height = 54;

..

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to