@syncfusion/ej2-navigations 29.1.38 → 29.1.40

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.
@@ -2360,6 +2360,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2360
2360
  }
2361
2361
  var cmenuWidth = Math.ceil(this.getMenuWidth(ul, ul.offsetWidth, this.enableRtl));
2362
2362
  var cmenu = addScrolling(this.createElement, wrapper, ul, 'vscroll', this.enableRtl, wrapper.offsetHeight);
2363
+ var newOffset = this.callFit(cmenu, false, true, top, left);
2364
+ top = newOffset.top;
2363
2365
  Object.assign(cmenu.style, {
2364
2366
  top: top + "px",
2365
2367
  left: left + "px",
@@ -9810,14 +9812,14 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9810
9812
  */
9811
9813
  Tab.prototype.removeTab = function (index) {
9812
9814
  var _this = this;
9813
- var trg = selectAll('.' + CLS_TB_ITEM, this.element)[index];
9815
+ var trg = selectAll('.' + CLS_TB_ITEM, this.hdrEle)[index];
9814
9816
  if (isNullOrUndefined(trg)) {
9815
9817
  return;
9816
9818
  }
9817
9819
  var removeArgs = { removedItem: trg, removedIndex: index, cancel: false };
9818
9820
  this.trigger('removing', removeArgs, function (tabRemovingArgs) {
9819
9821
  if (!tabRemovingArgs.cancel) {
9820
- var header = select('#' + CLS_ITEM$2 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.element));
9822
+ var header = select('#' + CLS_ITEM$2 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_TB_ITEMS, _this.hdrEle));
9821
9823
  if (!isNullOrUndefined(header)) {
9822
9824
  _this.clearTabTemplate(header, 'headerTemplate', CLS_TB_ITEM);
9823
9825
  }