summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 05:57:34 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 05:57:34 +0000
commit2be6ebf0782e20598352a3ace9217082bd8dcf80 (patch)
treeeb2f13218487445d89f965cd894c946487a521d9
parent5bc30d7fe6d3e699c82ad6a7c0a601b541a1257f (diff)
downloadjquery-ui-2be6ebf0782e20598352a3ace9217082bd8dcf80.tar.gz
jquery-ui-2be6ebf0782e20598352a3ace9217082bd8dcf80.zip
Fixed #3058
-rw-r--r--ui/ui.resizable.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 709468ce9..2c7d30fb1 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -449,9 +449,13 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
return border + padding;
});
}
+
+ if ($.browser.msie && !isVisible(el))
+ return;
+
prel.css({
- height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px",
- width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px"
+ height: (el.height() - o.borderDif[0] - o.borderDif[2]) || 0,
+ width: (el.width() - o.borderDif[1] - o.borderDif[3]) || 0
});
},
@@ -824,4 +828,8 @@ $.ui.plugin.add("resizable", "grid", {
});
+function isVisible(element) {
+ return !($(element).is(':hidden') || $(element).parents(':hidden').length);
+}
+
})(jQuery);