The irony to all this over analyzation is;
We never heard the OP say WHY he even wanted to do this (padding in Canvas)
let alone if he even needed a canvas to do what he needed to do!

I just need to stay out of these application questions. ;-)

Tim, It is really exciting to see the future of flex and CSS.
I definitely encourage using things that deal with styles since the
framework is going to tip that way soon anyway. This is in reference to
using constraints.

I see loading style sheets as modules sooner than later. :)

Mike


On Fri, Oct 17, 2008 at 3:19 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>
> I hear ya man. Just like to keep things simple and, when possible,
> allow for pulling the styles out to CSS. I'm sure using a Box with
> padding would work for this too; instead of having two containers.
>
>
> -TH
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, "Paul
> Andrews" <[EMAIL PROTECTED]> wrote:
> >
> > Yes, I'm just old school this time round!
> > ----- Original Message -----
> > From: Tim Hoff
> > To: [email protected] <flexcoders%40yahoogroups.com>
> > Sent: Friday, October 17, 2008 7:58 PM
> > Subject: [flexcoders] Re: how to add internal padding in canvas?
> >
> >
> > Just preference, but I'd rather see:
> >
> > <mx:Canvas id="outer">
> > <mx:Canvas id="inner" top="10" bottom="10" left="10" right="10">
> > // my content
> > </mx:Canvas>
> > </mx:Canvas>
> >
> > -TH
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>, "Paul
> Andrews" paul@ wrote:
> > >
> > > ----- Original Message -----
> > > From: "Paul Andrews" paul@
> > > To: [email protected] <flexcoders%40yahoogroups.com>
> > > Sent: Friday, October 17, 2008 7:22 PM
> > > Subject: Re: [flexcoders] Re: how to add internal padding in canvas?
> > >
> > >
> > > > ----- Original Message -----
> > > > From: "markflex2007" markflex2007@
> > > > To: [email protected] <flexcoders%40yahoogroups.com>
> > > > Sent: Friday, October 17, 2008 6:51 PM
> > > > Subject: [flexcoders] Re: how to add internal padding in canvas?
> > > >
> > > >
> > > >> Please give me a simple demo,how to do " nest the canvas inside
> > > >> another container to get the margin"?
> > > >
> > > > Something like this perhaps..
> > > >
> > > > I'm assuming that the reason for the margin is to leave a gap
> around the
> > > > edges. Lets say you want a 5 pixel gap.
> > > >
> > > > <mx:Canvas id="outerCanvas">
> > > > <mx:Canvas id="innerCanvas" width="{outerCanvas-10}"
> > >
> > > Oops.. <mx:Canvas id="innerCanvas" width="{outerCanvas.width-10}"
> > >
> > > > height="{outerCanvas-10}" x=5 y=5 >
> > >
> > > height="{outerCanvas.height-10}" x=5 y=5 >
> > >
> > > >
> > > > add other stuff here
> > > >
> > > > </mx:Canvas>
> > > > </mx:Canvas>
> > > >
> > > > Any good?
> > > >
> > > > Maybe I've got the wrong idea about why you want the margin.
> > > >
> > > > Paul
> > > >
> > > >
> > > >>
> > > >> Thanks for help
> > > >>
> > > >> Mark
> > > >> --- In [email protected] <flexcoders%40yahoogroups.com>,
> "Paul Andrews" paul@ wrote:
> > > >>>
> > > >>> You can always nest the canvas inside another container to get
> the
> > > >> margin..
> > > >>
> > > >>
> > > >>
> > > >> ------------------------------------
> > > >>
> > > >> --
> > > >> Flexcoders Mailing List
> > > >> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > >> Alternative FAQ location:
> > > >>
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
> 1e62079f6847<https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847>
> > > >> Search Archives:
> > > >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > >> Links
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > > ------------------------------------
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Alternative FAQ location:
> > > >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
> 1e62079f6847<https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847>
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > > Links
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
>  
>



-- 
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'.

Reply via email to