Too bad that's not simply a CSS style.

 

Jay Proulx

[EMAIL PROTECTED]

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of EECOLOR
Sent: January 31, 2007 10:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to make FormItem labels left aligned?

 

This is the correct code for aligning labels to the left:

 

 public class FormItem extends mx.containers.FormItem
 {

  override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
  {
   super.updateDisplayList(unscaledWidth, unscaledHeight);
   
   var vm:EdgeMetrics = viewMetricsAndPadding; 
   var left:Number = vm.left;
   
   var labelObject:UIComponent = mx_internal::labelObject as
UIComponent;
   
   labelObject.move(left, labelObject.y);
  };

 };

 

 

Greetz Erik

 

Reply via email to