Droppable: Use .outerWidth() and .outerHeight() when calculating proportions.

This commit is contained in:
Scott González 2012-01-28 20:20:26 -05:00
parent 7249124d85
commit 97af9236c2

View File

@ -62,14 +62,10 @@ $.widget( "ui.droppable", {
// TODO: rename to refresh()? // TODO: rename to refresh()?
refreshPosition: function() { refreshPosition: function() {
// Store current location
this.offset = this.element.offset(); this.offset = this.element.offset();
// Store the droppable's proportions
// TODO: should this delegate to core?
this.proportions = { this.proportions = {
width: this.element[0].offsetWidth, width: this.element.outerWidth(),
height: this.element[0].offsetHeight height: this.element.outerHeight()
}; };
}, },