@syncfusion/ej2-navigations 25.1.35 → 25.1.38

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.
@@ -4081,16 +4081,21 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4081
4081
  popObj.enableRtl = false;
4082
4082
  popObj.position = { X: 'right', Y: 'top' };
4083
4083
  }
4084
- popObj.dataBind();
4085
- popObj.refreshPosition();
4086
- popObj.element.style.top = this.getElementOffsetY() + 'px';
4087
4084
  if (this.overflowMode === 'Extended') {
4088
4085
  popObj.element.style.minHeight = '0px';
4086
+ popObj.width = this.getToolbarPopupWidth(this.element);
4089
4087
  }
4088
+ popObj.dataBind();
4089
+ popObj.refreshPosition();
4090
+ popObj.element.style.top = this.getElementOffsetY() + 'px';
4090
4091
  popupNav.classList.add(CLS_TBARNAVACT);
4091
4092
  popObj.show({ name: 'FadeIn', duration: 100 });
4092
4093
  }
4093
4094
  };
4095
+ Toolbar.prototype.getToolbarPopupWidth = function (ele) {
4096
+ var eleStyles = window.getComputedStyle(ele);
4097
+ return parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
4098
+ };
4094
4099
  /**
4095
4100
  * To Initialize the control rendering
4096
4101
  *
@@ -4484,7 +4489,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4484
4489
  position: this.enableRtl ? { X: 'left', Y: 'top' } : { X: 'right', Y: 'top' }
4485
4490
  });
4486
4491
  if (this.overflowMode === 'Extended') {
4487
- popup.width = parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
4492
+ popup.width = this.getToolbarPopupWidth(this.element);
4488
4493
  popup.offsetX = 0;
4489
4494
  }
4490
4495
  popup.appendTo(ele);
@@ -5527,8 +5532,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5527
5532
  }
5528
5533
  if (this.popObj) {
5529
5534
  if (this.overflowMode === 'Extended') {
5530
- var eleStyles = window.getComputedStyle(this.element);
5531
- this.popObj.width = parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
5535
+ this.popObj.width = this.getToolbarPopupWidth(this.element);
5532
5536
  }
5533
5537
  if (this.tbarAlign) {
5534
5538
  this.removePositioning();
@@ -12746,11 +12750,17 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12746
12750
  TreeView.prototype.focusIn = function () {
12747
12751
  if (!this.mouseDownStatus) {
12748
12752
  var focusedElement = this.getFocusedNode();
12749
- focusedElement.setAttribute("tabindex", "0");
12750
- addClass([focusedElement], FOCUS);
12751
- EventHandler.add(focusedElement, 'blur', this.focusOut, this);
12753
+ if (focusedElement.classList.contains('e-disable')) {
12754
+ focusedElement.setAttribute("tabindex", "-1");
12755
+ this.navigateNode(true);
12756
+ }
12757
+ else {
12758
+ focusedElement.setAttribute("tabindex", "0");
12759
+ addClass([focusedElement], FOCUS);
12760
+ EventHandler.add(focusedElement, 'blur', this.focusOut, this);
12761
+ }
12762
+ this.mouseDownStatus = false;
12752
12763
  }
12753
- this.mouseDownStatus = false;
12754
12764
  };
12755
12765
  TreeView.prototype.focusOut = function (event) {
12756
12766
  var focusedElement = this.getFocusedNode();