See below.

Michael wrote:

> Raymond,
> 
> I STRONGLEY suggest that we render the borders inside the layers...
> 
> All the widgets that we create can NOT have a border outside the layer...
> If a layer is "100px in width" then it needs to be a "100px in width"

If you set a 1px border in CSS for 100px wide box it will be in total 102px
The same for adding margin and padding it is an outer dimension and that's
the way it is (well except for the broken box model in IE5). If I have got
this wrong please point me to the correct reference thanks!

It would be good to emulate correct CSS behaviour in NS4 with adding
outer borders. Or more precisely:
1) increasing the size of the layer (and content auto centers) then adding
the borders inside 
2) creating a new larger container layer center anchoring the original layer
then adding the borders inside.

Something like this is in dynapi3x anyway!

> The DynAPI is a precise tool so the layers NEED to be that to.
> 
> Well that's what I think :-)

It is precise. We just all need to sing from the same style sheet. This has
been a subject of discussion in the past. If personal projects have had the
development of DynAPI move in one direction then it would be difficult
to change back to the CSS standard (for complicated page layouts).

I don't care either way I'm just making the point about consistency and
CSS. We've all put something in the dynapi project for own needs I guess. 

> I wrote something for the IOS a while back (included in the IOS release)
> when I got sick of using extra lay's for borders (to reduce the memory).
> "borderbutton.js" 
> 
> This also takes care of all the parent's layer childern.
> 
> This is a old version and I made some dynapi3 hacks but you get the point.
> 
> There are some minor drawbacks (resizing) because the layers a manipulated
> and need to be realign.
> 
> Why no use shorthand for the CSS model
> lyr.setBorder("10px solid purple")

There is something like that:
lyr.setBorder(10,'red')
or
lyr.setBorder([1,2,3,4],['red','green','blue','yellow'])
or
lyr.setBorder([5,10],['top.gif','right.gif','bottom.gif','left.gif')
or
different side and corner images too.

> I've uploaded a test for you to see
> http://www.michaelbystrom.com/download/dynapi_border.zip
> 
> How big zip file can I send through to this list??

Quite small I think about 30k.

_

Kevin

> I've also inclued a css for a grid that I use now and then to test the
> locations of layers. I've also included some screen shots of examples.
> 
> Rock'n Roll
> Michael
> 
> 
> 
> > Hi Everyone,
> > 
> > I've managed to get DynLayers to now support CSS
> > borders in ie, opera and mozilla. All DynLayers will
> > render the same way in all browsers. NS4 does not work
> > well with CSS so I don't know it if makes sense to try
> > and create a fix for that.
> > 
> > Should I add this to the setCSSBorder() to
> > BorderManager or should we just create a different
> > libary (e.g. CSSBorder)?
> > 
> > 
> > --
> > Raymond Irving
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[EMAIL PROTECTED]/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to