From: TJ Higgins Date: Tue, 2 Aug 2016 21:09:31 +0000 (+0000) Subject: Resolve merge conflicts X-Git-Tag: v6.3-rc1~22^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4957c48850954a08348ec89d22085e512ae17cac;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Resolve merge conflicts --- 4957c48850954a08348ec89d22085e512ae17cac diff --cc js/foundation.dropdown.js index 851c64614,5e913fb44..ae54feccc --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@@ -135,18 -133,11 +138,9 @@@ class Dropdown param = (direction === 'top') ? 'height' : 'width', offset = (param === 'height') ? this.options.vOffset : this.options.hOffset; - - - if(($eleDims.width >= $eleDims.windowDims.width) || (!this.counter && !Foundation.Box.ImNotTouchingYou(this.$element))){ + if(($eleDims.width >= $eleDims.windowDims.width) || (!this.counter && !Foundation.Box.ImNotTouchingYou(this.$element, this.$parent))){ - var newWidth = $eleDims.windowDims.width, - newHOffset = 0; - if(this.$parent) { - var $parentDims = Foundation.Box.GetDimensions(this.$parent); - newHOffset = $parentDims.offset.left; - if($parentDims.width < newWidth){ - newWidth = $parentDims.width; - } - } - this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, 'center bottom', this.options.vOffset, this.options.hOffset + newHOffset, true)).css({ - 'width': newWidth - (this.options.hOffset * 2), + this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, 'center bottom', this.options.vOffset, this.options.hOffset, true)).css({ + 'width': $eleDims.windowDims.width - (this.options.hOffset * 2), 'height': 'auto' }); this.classChanged = true; @@@ -155,7 -146,7 +149,7 @@@ this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, position, this.options.vOffset, this.options.hOffset)); - while(!Foundation.Box.ImNotTouchingYou(this.$element, this.$parent) && this.counter){ - while(!Foundation.Box.ImNotTouchingYou(this.$element, false, true) && this.counter){ ++ while(!Foundation.Box.ImNotTouchingYou(this.$element, this.$parent, true) && this.counter){ this._reposition(position); this._setPosition(); }