From: <do...@cr...> - 2005-07-29 18:08:59
|
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 |