From cd56a0c0b2b4474e19da72adb60eeb1ae72094e3 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Mon, 26 Aug 2019 10:38:44 -0700 Subject: [PATCH] No Edge/IE close input icon (#2912) * Don't show close icon in widgetdiv input in edge and IE --- core/css.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/css.js b/core/css.js index fa4b6bd68..cb47d9ce6 100644 --- a/core/css.js +++ b/core/css.js @@ -547,6 +547,13 @@ Blockly.Css.CONTENT = [ 'text-align: center;', '}', + /* Edge and IE introduce a close icon when the input value is longer than a + certain length. This affects our sizing calcutations of the text input. + Hiding the close icon to avoid that. */ + '.blocklyHtmlInput::-ms-clear {', + 'display: none;', + '}', + '.blocklyMainBackground {', 'stroke-width: 1;', 'stroke: #c6c6c6;', /* Equates to #ddd due to border being off-pixel. */