I am using rev: 249
Around line 363 is a function
css: function(e,p) {
in the middle of that function is a section like this
} else {
e = $(e.cloneNode(true)).css({
visibility: "hidden", position: "absolute", display: "block"
}).prependTo("body")[0];
oHeight = e.clientHeight;
oWidth = e.clientWidth;
e.parentNode.removeChild(e);
}
The part where the node is cloned then prepended to the body is causing some
trouble in ie in my layout.
I have a div that has a number of elements that have their styles set
because of the container that they are in.
Example:
<style>
#theContainer h1 {
font-size: 11px;
}
</style>
<div id="theContainer">
<div id="theOneImWorkingWith">
<h1>Text</h1>
</div>
</div>
When this node is cloned and prepened to the body, these styles are no
longer applied and the height of the node is calculated incorrectly.
I propose that instead of prepending to the body, the node should be
prepended to its parent.
Like this: (or something like this)
e = $(e.cloneNode(true)).css({
visibility: "hidden", position: "absolute", display: "block"
}).prependTo($(e).parent())[0];
Am I full of it? I am just getting to know jquery and I may be way out
there...
Where should I report bugs like this?
Thanks all. This is one of the friendliest lists that I subscribe to. Guess
it should be fun
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/