From 3ed91862fa41adac61918b231bf627a055a8b789 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Tue, 16 Oct 2012 10:22:25 -0700 Subject: [PATCH] fixed dropdown positioning when select2 has margins. fixes #501 --- select2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/select2.js b/select2.js index 4be9c9f9..27385008 100644 --- a/select2.js +++ b/select2.js @@ -883,9 +883,9 @@ the specific language governing permissions and limitations under the Apache Lic // abstract positionDropdown: function() { var offset = this.container.offset(), - height = this.container.outerHeight(true), - width = this.container.outerWidth(true), - dropHeight = this.dropdown.outerHeight(true), + height = this.container.outerHeight(false), + width = this.container.outerWidth(false), + dropHeight = this.dropdown.outerHeight(false), viewportBottom = $(window).scrollTop() + document.documentElement.clientHeight, dropTop = offset.top + height, dropLeft = offset.left,