diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-14 18:09:07 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-14 18:09:07 +0000 |
commit | 1c31a26b564ad554f5262a0b25c32a9a847688e6 (patch) | |
tree | 7cf8c0491096ce187365a7d78011294dad98b2bf /ui | |
parent | 6024fdf2564b274af2f2d306f420e44a2c88d7b1 (diff) | |
download | jquery-ui-1c31a26b564ad554f5262a0b25c32a9a847688e6.tar.gz jquery-ui-1c31a26b564ad554f5262a0b25c32a9a847688e6.zip |
Replaced stackfix with bgiframe.
Fixes #5061 - Remove stackfix.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 6 | ||||
-rw-r--r-- | ui/jquery.ui.position.js | 2 | ||||
-rw-r--r-- | ui/jquery.ui.stackfix.js | 40 |
3 files changed, 4 insertions, 44 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index be4842e8a..6635499ec 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -27,7 +27,7 @@ var uiDialogClasses = $.widget("ui.dialog", { options: { autoOpen: true, - stackfix: false, + bgiframe: false, buttons: {}, closeOnEscape: true, closeText: 'close', @@ -146,7 +146,7 @@ $.widget("ui.dialog", { self._createButtons(options.buttons); self._isOpen = false; - (options.stackfix && $.fn.stackfix && uiDialog.stackfix()); + (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe()); (options.autoOpen && self.open()); }, @@ -599,7 +599,7 @@ $.extend($.ui.dialog.overlay, { height: this.height() }); - (dialog.options.stackfix && $.fn.stackfix && $el.stackfix()); + (dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe()); this.instances.push($el); return $el; diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index eb632fcce..b9587387c 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -140,7 +140,7 @@ $.fn.position = function(options) { })); }); - (options.stackfix !== false && $.fn.stackfix && elem.stackfix()); + (options.bgiframe !== false && $.fn.bgiframe && elem.bgiframe()); elem.offset($.extend(position, { using: options.using })); }); }; diff --git a/ui/jquery.ui.stackfix.js b/ui/jquery.ui.stackfix.js deleted file mode 100644 index 5631dc536..000000000 --- a/ui/jquery.ui.stackfix.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * jQuery UI Stackfix @VERSION - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Stackfix - */ - -(function($){ - -// This is only for IE6 -$.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 - width : 'auto', // auto == offsetWidth - height : 'auto', // auto == offsetHeight - opacity : true, - 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+'" '+ - '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))+';'+ - 'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+ - 'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+ - 'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+ - '"/>'; - return this.each(function() { - if ( $('> iframe.ui-stackfix', this).length == 0 ) - this.insertBefore( document.createElement(html), this.firstChild ); - }); -} : function() { - return this; -}; - -})(jQuery);
\ No newline at end of file |