On 5/4/07, beatportdavem <[EMAIL PROTECTED]> wrote:
> I am running into a weird bug. I have a VBox with an id="w1",
> within "w1" there is a <mx:Text> component. I am attempting to
> adjusting the y coord. It doesn't work. BUT, when I replace
> <mx:Text> with <mx:TextArea> component in the VBox, I _can_ adjust the
> y coord of "w1".
> ---------
> public function setY(newY):void
> {
> w1.y = newY;
> }
What is w1 inside of? A Canvas or a Panel/Application with layout=absolute?
> ---------
> DOES NOT WORK
> ---------
> <mx:VBox width="50%" id="w1">
> <mx:Text y="0" text="QUESTION"/>
> </mx:VBox>
y=0 is redundant.
> ---------
> DOES WORK
> ---------
> <mx:VBox width="50%" id="w1">
> <mx:TextArea y="0" text="QUESTION"/>
> </mx:VBox>
y=0 is redundant.
If w1 is inside another VBox, Tile, or something, setting y may not
work, unless you've set autoLayout=false on that container (the
parent of w1)