aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index fd69b78e8..2ec6291de 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -302,9 +302,9 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
return el;
},
update: function(container, p) {
- if(className) return;
- if(!p.height()) { p.height(self.currentItem.innerHeight()); };
- if(!p.width()) { p.width(self.currentItem.innerWidth()); };
+ if(className && !o.forcePlaceholderSize) return;
+ if(!p.height()) { p.height(self.currentItem.innerHeight() - parseInt(self.currentItem.css('paddingTop')||0) - parseInt(self.currentItem.css('paddingBottom')||0)); };
+ if(!p.width()) { p.width(self.currentItem.innerWidth() - parseInt(self.currentItem.css('paddingLeft')||0) - parseInt(self.currentItem.css('paddingRight')||0)); };
}
};
}