mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Droppable: Use .outerWidth() and .outerHeight() when calculating proportions.
This commit is contained in:
parent
7249124d85
commit
97af9236c2
8
ui/jquery.ui.droppable.js
vendored
8
ui/jquery.ui.droppable.js
vendored
@ -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()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user