#967 closed bug (invalid)
bug in plugin center
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | plugin | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
My name's Agustin and I'm from Spain. I'm begining with jquery and I want tell you I find one bug in plugin "center".
With IE 6 and doctype XHTML this plugin not work. This a know problem,
look http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/offsetheight.asp
Well, I propose this change:
if (window.innerHeight)
var clientHeight = window.innerHeight;
else if(document.body && document.body.offsetHeight)
var clientHeight = document.body.offsetHeight;
==ADD THIS LINE ===>>>>> if (document.body.offsetHeight == 0) clientHeight = document.documentElement.offsetHeight; /* arreglar doctype + xhtml en IE */
s.top = ((clientHeight - parseInt(jQuery.css(this,"height")))/2) + "px"; } else {
s.top = "0";
}
*
This work for me and I want share this, but dont know how. I love jquery. Thanks. Note: Excuse me my english.
Change History (2)
comment:1 Changed 16 years ago by
comment:2 Changed 14 years ago by
Description: | modified (diff) |
---|---|
need: | → Review |
Resolution: | → invalid |
Status: | new → closed |
This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .
Sorry.
The line is /*-------------------------*/ if (clientHeight ==undefined) {clientHeight = document.documentElement.offsetHeight;} /* arreglar doctype + xhtml en IE */ /* -----------------------*/ Thanks