fixes in side pane toggling

This commit is contained in:
zadam
2020-03-01 20:11:40 +01:00
parent 9c631e4398
commit 4e0e2e8926
3 changed files with 7 additions and 15 deletions

View File

@@ -15,16 +15,8 @@ export default class SidePaneContainer extends FlexContainer {
return super.isEnabled() && options.is(this.side + 'PaneVisible');
}
handleEvent(name, data) {
if (options.is(this.side + 'PaneVisible')) {
super.handleEvent(name, data);
}
}
sidebarVisibilityChangedEvent({side, show}) {
if (this.side === side) {
this.toggle(show);
if (this.side === side && show) {
this.handleEvent('lazyLoaded');
}
}