Created
May 2, 2012 11:42
-
-
Save Error-331/2576009 to your computer and use it in GitHub Desktop.
Revisions
-
Error-331 created this gist
May 2, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ Compatibility ============= scrollWidth and scrollHeight ---------------------------- Not proper in IE 5.5, 6, 7 (http://www.quirksmode.org/dom/w3c_cssom.html), use something like this: if (navigator.appName == 'Microsoft Internet Explorer' && (document.compatMode == undefined || document.compatMode != 'CSS1Compat')) { this.WinHeight = Math.max(document.body.scrollHeight, document.body.clientHeight) + 'px'; this.IsQuirks = true }