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/