From 3603f55d978ddceee22341cbf49bade9ecc55257 Mon Sep 17 00:00:00 2001 From: Kim Santiago <31145923+kisantia@users.noreply.github.com> Date: Fri, 24 Apr 2020 13:14:08 -0700 Subject: [PATCH] Fix overflow toolbar for split views (#10155) * fix overflow toolbar not resizing correctly when split editor is opened * add comment --- src/sql/base/browser/ui/taskbar/overflowActionbar.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sql/base/browser/ui/taskbar/overflowActionbar.ts b/src/sql/base/browser/ui/taskbar/overflowActionbar.ts index fa8339dbeb..384b8667f1 100644 --- a/src/sql/base/browser/ui/taskbar/overflowActionbar.ts +++ b/src/sql/base/browser/ui/taskbar/overflowActionbar.ts @@ -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';