mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-26 01:38:40 +01:00
Fix Microsoft/monaco-editor#505. On IE11, we need to set width explicitly, otherwise Flexbox width inheritance doesn't always work.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user