Skip to content

Commit 3ed9186

Browse files
committed
fixed dropdown positioning when select2 has margins. fixes select2#501
1 parent 258a85b commit 3ed9186

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

select2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,9 @@ the specific language governing permissions and limitations under the Apache Lic
883883
// abstract
884884
positionDropdown: function() {
885885
var offset = this.container.offset(),
886-
height = this.container.outerHeight(true),
887-
width = this.container.outerWidth(true),
888-
dropHeight = this.dropdown.outerHeight(true),
886+
height = this.container.outerHeight(false),
887+
width = this.container.outerWidth(false),
888+
dropHeight = this.dropdown.outerHeight(false),
889889
viewportBottom = $(window).scrollTop() + document.documentElement.clientHeight,
890890
dropTop = offset.top + height,
891891
dropLeft = offset.left,

0 commit comments

Comments
 (0)