mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Stackfix: restrict version test to IE version
This commit is contained in:
parent
eff793d014
commit
f450302692
@ -11,7 +11,7 @@
|
|||||||
(function($){
|
(function($){
|
||||||
|
|
||||||
// This is only for IE6
|
// 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({
|
s = $.extend({
|
||||||
top : 'auto', // auto == .currentStyle.borderTopWidth
|
top : 'auto', // auto == .currentStyle.borderTopWidth
|
||||||
left : 'auto', // auto == .currentStyle.borderLeftWidth
|
left : 'auto', // auto == .currentStyle.borderLeftWidth
|
||||||
@ -21,7 +21,7 @@ $.fn.stackfix = $.browser.msie && /6.0/.test(navigator.userAgent) ? function(s)
|
|||||||
src : 'javascript:false;'
|
src : 'javascript:false;'
|
||||||
}, s || {});
|
}, s || {});
|
||||||
var prop = function(n){return n&&n.constructor==Number?n+'px':n;},
|
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;'+
|
'style="display:block;position:absolute;z-index:-1;'+
|
||||||
(s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
|
(s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
|
||||||
'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
|
'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
|
||||||
|
Loading…
Reference in New Issue
Block a user