MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / _alsoResize

Function _alsoResize

Three.js/js/jquery-ui.js:3096–3110  ·  view source on GitHub ↗
(exp, c)

Source from the content-addressed store, hash-verified

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); });

Callers 1

jquery-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected