A bit "buggy" solution, Stas.
rawChildren.getChildAt(rawChildren.numChildren- 1) should be used
instead, you know. ;)
On 12/14/06, Stanislav Zayarsky <[EMAIL PROTECTED]> wrote:
Guys,
Just use this "ExtendedFormItem" class instead of default "FormItem".
Here is the code:
*public* *class* ExtendedFormItem *extends* FormItem {
* override* *protected* *function*updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number) :
*void* {
* super*.updateDisplayList(unscaledWidth, unscaledHeight);
* var* labelObject : Object = rawChildren.getChildAt(1);
labelObject.x = 0;
}
}
Best regards
Stanislav
On 11/10/06, Tim Hoff <[EMAIL PROTECTED]> wrote:
>
> Hi Andriy,
>
> While I like your example, how do you propose aligning the children of
> the FormItems? It seems, with this method, that the entire form item
> (including the children - TextInput...), gets moved to the left with
> the label; at least in my test of this code. If the label text has
> different lengths, for each form item, the various children get moved to
> the left as well; and don't align. Preferably, this is something that
> should be handled with a stock CSS property. but I was wondering if you had
> experienced the same behavior. Instead of nesting HBox's, for days, this
> would be a very useful technique, for FormItems.
>
> -TH
> __________________________________
>
> *Tim Hoff
> *Cynergy Systems, Inc.
> http://www.cynergysystems.com <http://www.cynergysystems.comoffice/>
> Office: 866-CYNERGY
>
>