| 3094 | }, |
| 3095 | |
| 3096 | _alsoResize = function (exp, c) { |
| 3097 | $(exp).each(function() { |
| 3098 | var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {}, |
| 3099 | css = c && c.length ? c : el.parents(ui.originalElement[0]).length ? ["width", "height"] : ["width", "height", "top", "left"]; |
| 3100 | |
| 3101 | $.each(css, function (i, prop) { |
| 3102 | var sum = (start[prop]||0) + (delta[prop]||0); |
| 3103 | if (sum && sum >= 0) { |
| 3104 | style[prop] = sum || null; |
| 3105 | } |
| 3106 | }); |
| 3107 | |
| 3108 | el.css(style); |
| 3109 | }); |
| 3110 | }; |
| 3111 | |
| 3112 | if (typeof(o.alsoResize) === "object" && !o.alsoResize.nodeType) { |
| 3113 | $.each(o.alsoResize, function (exp, c) { _alsoResize(exp, c); }); |