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:
rebornix
2017-07-12 14:55:31 -07:00
parent 4f0f02e575
commit c344b45b10
@@ -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);