From: Joy R. <joy...@ho...> - 2003-05-03 10:21:17
|
Hello, The problem described below is excactly the issue I was telling earlier (comments about DynAPI3 beta thread). As a resolution I would suggest following: 1. We would use CSS method to define looks where ever it is possible. (Machintosh MSIE from version 5.x on, Opera from 6 on, Netscape from version 6 on, PC MSIE from version 6.x on if doctype is defined, all other DOM compliant browsers etc.) 2. In other browsers we would create alternate method to create similar looks effect using layers or slightly modified style arguments (ie. for instance layer would be set larger than defined so that also the border would fit in), which ever is faster or more acurate. In this way we would be ready for DOM browsers and for future, we could follow DOM standard and users wouldn't need how to do their code. They would just code like DOM suggests and results would be like they are in DOM browsers. There is one catch though. ... it may be easy or hard, I don't know at the moment, we would be need to be able to detect doctype-definitions from head in MSIE browsers (so that we could change the drawing method based on doctype definition on MSIE 6). Anyone knows wheter this is possible? >From: Raymond Irving <xw...@ya...> >To: dyn...@li... >Subject: Re: [Dynapi-Dev] setborder bug - resolved? >Date: Thu, 1 May 2003 06:20:55 -0700 (PDT) > > >See Below: > >--- Dan Willemsen <da...@wi...> wrote: > > On Wed, 2003-04-30 at 23:25, Raymond Irving 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)'; > > > > My question, why even bother with this in dom > > browsers, you should be > > able to set the css border property, and not touch > > the clipping. > > Shouldn't we? This would allow some of the special > > border designs on > > new browsers(like dashed, dotted, inset, outset, > > etc.) > >The problem we're having with DOM browsers is that the >border is not part of the element (or content area) >width/height. When setSize is called the clip property >is set to the specified width/height of the layer. >This makes it possible for us to change the content of >a layer and not have the layer automatically adjust to >the size of it's content, correct? Because of this >when we set the border property we will not be able to >see the right and bottom borders due to the clipping. > >-- >Raymond Irving > > > > > > > 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. > > > > > > 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 > > > > -- > > Dan Willemsen <da...@wi...> > > > > >__________________________________ >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.../ _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus |