Just to let you know I saw this and the 7 other Bugs tracker notifications on Friday (thanks to dynapi-notify, which already has four other subscribers besides myself, yay!). I've got one system running now after quite a bit of rebuild and recovery. I'll try to play with some of the code tomorrow (err, later today). I'm about ready for bed so I'll just read them now and think of it as I sleep. Thanks very much for pointing out what needs attention and giving some ideas.

I can only test on IE6 at the moment.  Maybe more in the future.

Leif

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <dynapi-dev@lists.sourceforge.net>
Sent: 2005 July 29 Friday 14:08
Subject: [Dynapi-Dev] inline layer funness





yes i know.. funness is not a word :-P

Okay, in the past when you use dynapi.inline to load an inline layer that did not have positioning set, the layers .x and .y would be inistialzed to 0

I done fixed it!

When you do not set a left or top in the style (eitherin style sheet on inline
style) IE fills these propeties with "auto" so lines 51 and 52
in dynlayer.inline.js :
dlyr.x = parseInt(css.left);
dlyr.y = parseInt(css.top);

both values equate to 0 (parseInt('auto') == 0)

Da fix! NOT CONFIRMED IN ANY OTHER VERSION OF IE

Lines: 51 and 52
in dynlayer.inline
dlyr.x = parseInt((css.left!="auto")?css.left:dlyr.elm.offsetLeft);
dlyr.y = parseInt((css.top!="auto")?css.top:dlyr.elm.offsetTop);

This done fixes it for top level layers: have not checked out child layers yet I am at work and can't spend too much time on this but wanted to get it out to
you guys.

For frowards compatability we could use the following instead (check for 0
rather than for "auto")

dlyr.x = parseInt(css.left)||dlyr.elm.offsetLeft;
dlyr.y = parseInt(css.top)||dlyr.elm.offsetTop;

If will check this out for child layers ect when i get home or on the weekend.

Feel free to remind me if I let it slide :-P






-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Dynapi-Dev mailing list
Dynapi-Dev@lists.sourceforge.net
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/







-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Dynapi-Dev mailing list
Dynapi-Dev@lists.sourceforge.net
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to