You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
* - width option was not working when using "container", added some code to support it
15
15
* - "offsetLeft" (defaults to 0) if we want the drop to be offset from the select element (by default it is aligned left to the element with 0 offset)
16
16
* - "autoAdjustDropHeight" (defaults to False) when set will automatically adjust the drop (up or down) height
17
-
* - "autoAdjustDropPosition" (defaults to False) when set will automatically calculate the area with the most available space and use best possible choise for the drop to show (up or down)
17
+
* - "autoAdjustDropPosition" (defaults to False) when set will automatically calculate the area with the most available space and use best possible choice for the drop to show (up/down and left/right)
18
18
* - "autoDropWidth" (defaults to False) when set will automatically adjust the dropdown width with the same size as the select element width
19
19
* - "autoAdjustDropWidthByTextSize" (defaults to false) when set will automatically adjust the drop (up or down) width by the text size (it will use largest text width)
20
20
* - "adjustHeightPadding" (defaults to 10) when using "autoAdjustDropHeight" we might want to add a bottom (or top) padding instead of taking the entire available space
@@ -629,9 +629,13 @@
629
629
adjustDropPosition: function(forceToggle){
630
630
varposition='bottom';
631
631
varmsDropHeight=this.$drop.outerHeight()||0;
632
+
varmsDropWidth=this.$drop.outerWidth()||0;
632
633
varselectOffsetTop=this.$parent.offset().top;
634
+
varselectParentWidth=this.$parent.width();
633
635
varspaceBottom=this.availableSpaceBottom();
636
+
varspaceLeft=this.availableSpaceLeft();
634
637
varspaceTop=this.availableSpaceTop();
638
+
varwindowWidth=$(window).width();
635
639
636
640
// find the optimal position of the drop (always choose "bottom" as the default to use)
0 commit comments