From 97af9236c20f5dfbd7143ae97a0e8bbcf5ebee1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 28 Jan 2012 20:20:26 -0500 Subject: [PATCH] Droppable: Use .outerWidth() and .outerHeight() when calculating proportions. --- ui/jquery.ui.droppable.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js index d0631dd90..97242ebe4 100644 --- a/ui/jquery.ui.droppable.js +++ b/ui/jquery.ui.droppable.js @@ -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() }; },