From 1c31a26b564ad554f5262a0b25c32a9a847688e6 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 14 Jan 2010 18:09:07 +0000 Subject: Replaced stackfix with bgiframe. Fixes #5061 - Remove stackfix. --- ui/jquery.ui.dialog.js | 6 +++--- ui/jquery.ui.position.js | 2 +- ui/jquery.ui.stackfix.js | 40 ---------------------------------------- 3 files changed, 4 insertions(+), 44 deletions(-) delete mode 100644 ui/jquery.ui.stackfix.js (limited to 'ui') 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 = '