diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-07-25 13:19:42 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-07-25 13:19:42 +0000 |
commit | f450302692ca417e85c25ff08931261f4acc8bad (patch) | |
tree | 44ed4d0bd24491279db363baeabb77b9d411d70a /ui/ui.stackfix.js | |
parent | eff793d014dfaeb4e601dbd97cf7b33352b05ce5 (diff) | |
download | jquery-ui-f450302692ca417e85c25ff08931261f4acc8bad.tar.gz jquery-ui-f450302692ca417e85c25ff08931261f4acc8bad.zip |
Stackfix: restrict version test to IE version
Diffstat (limited to 'ui/ui.stackfix.js')
-rw-r--r-- | ui/ui.stackfix.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.stackfix.js b/ui/ui.stackfix.js index 2cd5dd2aa..5631dc536 100644 --- a/ui/ui.stackfix.js +++ b/ui/ui.stackfix.js @@ -11,7 +11,7 @@ (function($){ // This is only for IE6 -$.fn.stackfix = $.browser.msie && /6.0/.test(navigator.userAgent) ? function(s) { +$.fn.stackfix = $.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) { s = $.extend({ top : 'auto', // auto == .currentStyle.borderTopWidth left : 'auto', // auto == .currentStyle.borderLeftWidth @@ -21,7 +21,7 @@ $.fn.stackfix = $.browser.msie && /6.0/.test(navigator.userAgent) ? function(s) src : 'javascript:false;' }, s || {}); var prop = function(n){return n&&n.constructor==Number?n+'px':n;}, - html = '<iframe class="ui-stackfix"frameborder="0"tabindex="-1"src="'+s.src+'"'+ + html = '<iframe class="ui-stackfix" frameborder="0" tabindex="-1" src="'+s.src+'" '+ 'style="display:block;position:absolute;z-index:-1;'+ (s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+ 'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+ |