From c344b45b1010a7ddbbddbbde411595edea22a2a6 Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 12 Jul 2017 14:55:12 -0700 Subject: [PATCH] Fix Microsoft/monaco-editor#505. On IE11, we need to set width explicitly, otherwise Flexbox width inheritance doesn't always work. --- src/vs/editor/contrib/find/browser/findWidget.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/editor/contrib/find/browser/findWidget.ts b/src/vs/editor/contrib/find/browser/findWidget.ts index ceecbd9db0c..4aeef0a9618 100644 --- a/src/vs/editor/contrib/find/browser/findWidget.ts +++ b/src/vs/editor/contrib/find/browser/findWidget.ts @@ -850,6 +850,8 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas this._domNode = document.createElement('div'); this._domNode.className = 'editor-widget find-widget'; this._domNode.setAttribute('aria-hidden', 'true'); + // We need to set this explicitly, otherwise on IE11, the width inheritence of flex doesn't work. + this._domNode.style.width = `${FIND_WIDGET_INITIAL_WIDTH}px`; this._domNode.appendChild(this._toggleReplaceBtn.domNode); this._domNode.appendChild(findPart);