Patch: FixedHeader to use position:absolute in IE8 Compat browser mode
Patch: FixedHeader to use position:absolute in IE8 Compat browser mode
hkdennis2k
Posts: 11Questions: 0Answers: 0
In IE8 Compat Browser mode, it return a useragent string which is version 7. And jquery.browser.version will return 7.
But in fact that the browser do support the CSS "position: fixed" correct.
You can patch simplely
Near Line 139:
>>s.bUseAbsPos = (jQuery.browser.msie && (jQuery.browser.version == "6.0" || jQuery.browser.version == "7.0"));
change to
>>s.bUseAbsPos = (jQuery.browser.msie && (jQuery.browser.version == "6.0" || jQuery.browser.version == "7.0")) && navigator.userAgent.indexOf("Trident/4.")<0;
Regards,
Dennis
But in fact that the browser do support the CSS "position: fixed" correct.
You can patch simplely
Near Line 139:
>>s.bUseAbsPos = (jQuery.browser.msie && (jQuery.browser.version == "6.0" || jQuery.browser.version == "7.0"));
change to
>>s.bUseAbsPos = (jQuery.browser.msie && (jQuery.browser.version == "6.0" || jQuery.browser.version == "7.0")) && navigator.userAgent.indexOf("Trident/4.")<0;
Regards,
Dennis
This discussion has been closed.
Replies
Thanks for that. I'll include it in the next release of FixedHeader. Funny that position:absolute works in compat mode... Good old IE :-)
Regards,
Allan