Patch: FixedHeader to use position:absolute in IE8 Compat browser mode

Patch: FixedHeader to use position:absolute in IE8 Compat browser mode

hkdennis2khkdennis2k Posts: 11Questions: 0Answers: 0
edited June 2010 in FixedHeader
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

Replies

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    Hi Dennis,

    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
This discussion has been closed.