mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fixed #3058
This commit is contained in:
parent
5bc30d7fe6
commit
2be6ebf078
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user