[flexcoders] how to add internal padding in canvas?

2008-10-17 Thread markflex2007
I want to add right padding and left padding inside canvas so the
controls in side do not touch the side of canvas, but canvas do not
have padding attribute, how to do this.

Thanks

MK



Re: [flexcoders] how to add internal padding in canvas?

2008-10-17 Thread claudiu ursica
The panel component supports padding, wil that suit you?

HTH,
Claudiu



- Original Message 
From: markflex2007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, October 17, 2008 5:07:27 PM
Subject: [flexcoders] how to add internal padding in canvas?


I want to add right padding and left padding inside canvas so the
controls in side do not touch the side of canvas, but canvas do not
have padding attribute, how to do this.

Thanks

MK



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [flexcoders] how to add internal padding in canvas?

2008-10-17 Thread Michael Schmalle
A hack that can be done if you really want Canvas is;
Create a subclass of Canvas and override the usePadding property.

override mx_internal get usePadding():Boolean
{
return true;
}

This will turn the padding back on when the
layout calculates viewMetricsAndPadding.

Mike

On Fri, Oct 17, 2008 at 10:17 AM, claudiu ursica [EMAIL PROTECTED]wrote:

   The panel component supports padding, wil that suit you?

 HTH,
 Claudiu

 - Original Message 
 From: markflex2007 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, October 17, 2008 5:07:27 PM
 Subject: [flexcoders] how to add internal padding in canvas?

  I want to add right padding and left padding inside canvas so the
 controls in side do not touch the side of canvas, but canvas do not
 have padding attribute, how to do this.

 Thanks

 MK


 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.