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], "Paul Andrews" <[EMAIL PROTECTED]> wrote: > > Yes, I'm just old school this time round! > ----- Original Message ----- > From: Tim Hoff > To: [email protected] > 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], "Paul Andrews" paul@ wrote: > > > > ----- Original Message ----- > > From: "Paul Andrews" paul@ > > To: [email protected] > > 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] > > > 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], "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 > > >> 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 > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > > Links > > > > > > > > > > > > > > >

