|
From: Raymond I. <xw...@ya...> - 2003-05-01 22:49:11
|
See Below:
--- Kevin <ke...@ke...> wrote:
>
> "Raymond Irving" <xw...@ya...> wrote:
>
> > Hello,
> >
> > I propose that instead using layers (highlighters)
> to
> > create borders in DOM browsers we simply extend
> the
> > clipped area (w,h)to twice the border size:
> >
> > var w=((this.w+this._borClipOff)||0);
> > var h=((this.h+this._borClipOff)||0);
> > this.css.clip='rect(0px '+w+'px '+h+'px 0px)';
> >
> > The above will cause layers when viewed in DOM to
> > appear a little wider than when viewed in IE. This
> > should not be a problem for most designs as the
> > deigner can work around this. My main reason for
> doing
> > this is obvious... CSS is much faster than using
> > layers to create borders.
>
> I wouldn't ask a designer to work around our
> problems.
> If two DynLayers are side by side in a simple
> containing
> DynLayer. Giving the first a border dynamically
> would
> push the other under the containers clip and messing
> up
> the second DynLayers co-ordinates. Re: my previous
> comment:
>
> "Would we have to 'adjust' the dlyr x/y? What are
> the
> coords of relative elements or when constructing a
> widget and bordered elements need to touch?"
Adjusting the xy would really mess things up.
> This is bad and what makes it even worse is that
> IE5x
> will behave differently to IE4/6 and again
> differently to
> DOM. This doesn't matter for one DynLayer widgets
> as they animate over everything else.
You now what, this border thing with IE, DOM and NS4
is really taking up a lot of time. I think I'll only
implement borders using layers. If a user needs CSS
support then they'll have to implement that on there
own. IMO I believe CSS borders should work the same
way table borders do... the border (padding,etc)should
be part of the width/height of the element. So
elm.style.width="100px" will remain 100px even with a
border of 4px.
--
Raymond Irving
> -
> Kevin
>
> > The designer will also have the option of using
> > highlighters to create borders in either IE or
> DOM.
> > This is done by drawing four child layers around
> the
> > parent layer:
> >
> > setBorder(size, color, useLyr);
> > size = size of border
> > color = color of border (e.g. "#FF00FF" or
> > {top:"#FFFFFF", right:"C0C0C0", bottom:"C0C0C0",
> > left:"FFFFFF"})
> > useLyr = (Optional) Forces the use of Layers as
> > borders. This is always true for NS4 but defaults
> to
> > false for DOM and IE.
> >
> > Do you agree to this implementation?
> >
> > --
> > Raymond Irving
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> >
> >
> >
>
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dynapi-Dev mailing list
> > Dyn...@li...
> >
>
http://www.mail-archive.com/dyn...@li.../
>
>
>
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
>
http://www.mail-archive.com/dyn...@li.../
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
|