Fix overflow toolbar for split views (#10155)

* fix overflow toolbar not resizing correctly when split editor is opened

* add comment
This commit is contained in:
Kim Santiago
2020-04-24 13:14:08 -07:00
committed by GitHub
parent a018058169
commit 3603f55d97

View File

@@ -40,6 +40,13 @@ export class OverflowActionBar extends ActionBar {
}
}));
// Needed so that toolbar gets resized properly with split views
this._register(DOM.addDisposableListener(window, DOM.EventType.MOUSE_MOVE, e => {
if (this._actionsList) {
this.resizeToolbar();
}
}));
this._overflow = document.createElement('ul');
this._overflow.id = 'overflow';
this._overflow.className = 'overflow';