@syncfusion/ej2-navigations 19.3.56 → 19.3.57

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.
@@ -14432,7 +14432,7 @@ let Sidebar = class Sidebar extends Component {
14432
14432
  setTimeOut() {
14433
14433
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14434
14434
  const elementWidth = this.element.getBoundingClientRect().width;
14435
- if (this.element.classList.contains(OPEN) && sibling) {
14435
+ if (this.element.classList.contains(OPEN) && sibling && !(this.type === 'Over' && this.enableDock)) {
14436
14436
  if (this.position === 'Left') {
14437
14437
  sibling.style.marginLeft = this.setDimension(this.width === 'auto' ? elementWidth : this.width);
14438
14438
  }
@@ -14739,7 +14739,7 @@ let Sidebar = class Sidebar extends Component {
14739
14739
  const sibling = document.querySelector('.e-main-content') || this.targetEle;
14740
14740
  if (sibling) {
14741
14741
  sibling.style.transform = 'translateX(' + 0 + 'px)';
14742
- if (!Browser.isDevice && this.type !== 'Auto') {
14742
+ if (!Browser.isDevice && this.type !== 'Auto' && !(this.type === 'Over' && this.enableDock)) {
14743
14743
  sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = '0px';
14744
14744
  }
14745
14745
  }
@@ -14761,9 +14761,9 @@ let Sidebar = class Sidebar extends Component {
14761
14761
  break;
14762
14762
  case 'Over':
14763
14763
  addClass([this.element], [OVER]);
14764
- if (this.enableDock && this.element.classList.contains(CLOSE)) {
14764
+ if (this.enableDock && (this.element.classList.contains(CLOSE) || this.isOpen)) {
14765
14765
  if (sibling) {
14766
- sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = margin;
14766
+ sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = this.setDimension(this.dockSize);
14767
14767
  }
14768
14768
  }
14769
14769
  break;