@syncfusion/ej2-dropdowns 31.2.12 → 31.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5755,6 +5755,7 @@ let DropDownList = class DropDownList extends DropDownBase {
5755
5755
  this.getFocusElement();
5756
5756
  this.checkCollision(popupEle);
5757
5757
  if (Browser.isDevice) {
5758
+ this.popupObj.resolveCollision();
5758
5759
  if ((parseInt(this.popupWidth.toString(), 10) > window.outerWidth) &&
5759
5760
  !(this.getModuleName() === 'dropdownlist' && this.allowFiltering)) {
5760
5761
  this.popupObj.element.classList.add('e-wide-popup');
@@ -7136,7 +7137,7 @@ let DropDownList = class DropDownList extends DropDownBase {
7136
7137
  const container = this.inputWrapper.container;
7137
7138
  const label = container.querySelector('.e-float-text');
7138
7139
  const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7139
- if (label && calculateWidth) {
7140
+ if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
7140
7141
  label.style.width = calculateWidth + 'px';
7141
7142
  }
7142
7143
  }
@@ -18685,7 +18686,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18685
18686
  this.renderItems(this.mainData, this.fields);
18686
18687
  }
18687
18688
  this.virtualCustomData = null;
18688
- this.isVirtualTrackHeight = false;
18689
+ this.isVirtualTrackHeight = this.totalItemCount > (this.itemCount * 2) ? false : true;
18689
18690
  }
18690
18691
  });
18691
18692
  }
@@ -18733,7 +18734,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18733
18734
  if (this.hideSelectedItem && this.value && Array.isArray(this.value) && this.value.length > 0) {
18734
18735
  this.totalItemsCount();
18735
18736
  }
18736
- if (!this.preventSetCurrentData && !isNullOrUndefined(this.viewPortInfo.startIndex) &&
18737
+ if (!this.preventSetCurrentData && this.totalItemCount > (this.itemCount * 2) &&
18738
+ !isNullOrUndefined(this.viewPortInfo.startIndex) &&
18737
18739
  !isNullOrUndefined(this.viewPortInfo.endIndex)) {
18738
18740
  this.notify('setCurrentViewDataAsync', {
18739
18741
  component: this.getModuleName(),
@@ -18801,7 +18803,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18801
18803
  const container = this.overAllWrapper;
18802
18804
  const label = container.querySelector('.e-float-text');
18803
18805
  const calculateWidth = (container.clientWidth - this.getRightIconsWidth());
18804
- if (label && calculateWidth) {
18806
+ if (label && calculateWidth && !(this.cssClass && this.cssClass.split(' ').indexOf('e-outline') !== -1)) {
18805
18807
  label.style.width = calculateWidth + 'px';
18806
18808
  }
18807
18809
  }