Explorar o código

Recalculation dropdown height if dropdownAutoWidth is true

IliaFours %!s(int64=11) %!d(string=hai) anos
pai
achega
ffddc48a24
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -1248,6 +1248,7 @@ the specific language governing permissions and limitations under the Apache Lic
                 // Add scrollbar width to dropdown if vertical scrollbar is present
                 dropWidth = $dropdown.outerWidth(false) + (resultsListNode.scrollHeight === resultsListNode.clientHeight ? 0 : scrollBarDimensions.width);
                 dropWidth > width ? width = dropWidth : dropWidth = width;
+                dropHeight = $dropdown.outerHeight(false);
                 enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight;
             }
             else {