Hi Max,

The change I made moves getAttributeRelative() from LzSprite to LzView 
because there is no width/height support in the dhtml version. Example apps 
such as calendar call getAttributeRelative() with x,y,width,height. It 
sounds like there are two choices when someone asks for width/height from 
dhtml:

   - Return the view's width/height.
   - Return the same (scaled) width/height for dhtml and swf.

My change is doing the latter. Is the first choice more consistent?

Thanks!

Phil



> > 2) As with .as, I don't think there needs to be any sprite
> > getAttributeRelative.  The portable code already maintains accurate view
> > dimensions.  [Max: please verify.]
>
>Right, except getAttributeRelative() works with height and width in .as,
>but not .js.  This shouldn't be a problem, since width and height can't
>be transformed/scaled for subviews in .js.  The API needs to be
>consistent and should return something sensible for width/height though...


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to