@syncfusion/ej2-navigations 29.1.38 → 29.1.41

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.
@@ -2270,6 +2270,8 @@ let MenuBase = class MenuBase extends Component {
2270
2270
  }
2271
2271
  const cmenuWidth = Math.ceil(this.getMenuWidth(ul, ul.offsetWidth, this.enableRtl));
2272
2272
  const cmenu = addScrolling(this.createElement, wrapper, ul, 'vscroll', this.enableRtl, wrapper.offsetHeight);
2273
+ const newOffset = this.callFit(cmenu, false, true, top, left);
2274
+ top = newOffset.top;
2273
2275
  Object.assign(cmenu.style, {
2274
2276
  top: `${top}px`,
2275
2277
  left: `${left}px`,
@@ -9522,14 +9524,14 @@ let Tab = class Tab extends Component {
9522
9524
  * @returns {void}.
9523
9525
  */
9524
9526
  removeTab(index) {
9525
- const trg = selectAll('.' + CLS_TB_ITEM, this.element)[index];
9527
+ const trg = selectAll('.' + CLS_TB_ITEM, this.hdrEle)[index];
9526
9528
  if (isNullOrUndefined(trg)) {
9527
9529
  return;
9528
9530
  }
9529
9531
  const removeArgs = { removedItem: trg, removedIndex: index, cancel: false };
9530
9532
  this.trigger('removing', removeArgs, (tabRemovingArgs) => {
9531
9533
  if (!tabRemovingArgs.cancel) {
9532
- const header = select('#' + CLS_ITEM$2 + this.tabId + '_' + this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, this.element));
9534
+ const header = select('#' + CLS_ITEM$2 + this.tabId + '_' + this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, this.hdrEle));
9533
9535
  if (!isNullOrUndefined(header)) {
9534
9536
  this.clearTabTemplate(header, 'headerTemplate', CLS_TB_ITEM);
9535
9537
  }