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()?
refreshPosition: function() {
// Store current location
this.offset = this.element.offset();
// Store the droppable's proportions
// TODO: should this delegate to core?
this.proportions = {
width: this.element[0].offsetWidth,
height: this.element[0].offsetHeight
width: this.element.outerWidth(),
height: this.element.outerHeight()
};
},