Skip to content

Commit

Permalink
Stackfix: restrict version test to IE version
Browse files Browse the repository at this point in the history
  • Loading branch information
chicheng committed Jul 25, 2009
1 parent eff793d commit f450302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/ui.stackfix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))+';'+
Expand Down

0 comments on commit f450302

Please sign in to comment.