|
From: Michael B. <mi...@mi...> - 2003-09-14 21:53:10
|
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"
The DynAPI is a precise tool so the layers NEED to be that to.
Well that's what I think :-)
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")
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??
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
|