aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-09-20 02:43:18 +0000
committerRichard Worth <rdworth@gmail.com>2008-09-20 02:43:18 +0000
commit0bae0870d920842f10322763c66bc59541b9158c (patch)
tree4133b7ebeb79260c75efc5f8a7f1133bbce85c9f /ui/ui.resizable.js
parent1285c6e76302a65f8eaf6380b33c010a1900519c (diff)
downloadjquery-ui-0bae0870d920842f10322763c66bc59541b9158c.tar.gz
jquery-ui-0bae0870d920842f10322763c66bc59541b9158c.zip
whitespace
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 1698b5f8d..fdd22b190 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -14,9 +14,9 @@
$.widget("ui.resizable", $.extend({}, $.ui.mouse, {
_init: function() {
-
+
var self = this, o = this.options;
-
+
var elpos = this.element.css('position');
this.originalElement = this.element;
@@ -316,7 +316,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
if (o.preserveCursor)
$('body').css('cursor', this.axis + '-resize');
-
+
this._propagate("start", e);
return true;
},
@@ -555,16 +555,15 @@ $.ui.plugin.add("resizable", "containment", {
};
}
-
// i'm a node, so compute top, left, right, bottom
else{
self.containerOffset = $(ce).offset();
self.containerPosition = $(ce).position();
self.containerSize = { height: $(ce).innerHeight(), width: $(ce).innerWidth() };
-
+
var co = self.containerOffset, ch = self.containerSize.height, cw = self.containerSize.width,
width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);
-
+
self.parentData = {
element: ce, left: co.left, top: co.top, width: width, height: height
};
@@ -611,7 +610,6 @@ $.ui.plugin.add("resizable", "containment", {
var helper = $(self.helper), ho = helper.offset(), w = helper.innerWidth(), h = helper.innerHeight();
-
if (o.helper && !o.animate && /relative/.test(ce.css('position')))
$(this).css({ left: (ho.left - co.left), top: (ho.top - co.top), width: w, height: h });