Field textinput pixel perfect input (#3443)

* Fix sizing of text input field in zelos, pixel perfect input in other browsers
This commit is contained in:
Sam El-Husseini
2019-11-14 16:13:22 -08:00
committed by GitHub
parent d8476306f4
commit 139382e009
8 changed files with 31 additions and 39 deletions

View File

@@ -360,7 +360,7 @@ Blockly.Css.CONTENT = [
'fill: #000;',
'}',
'.blocklyEditableText:hover>rect {',
'.blocklyEditableText:not(.editing):hover>rect {',
'stroke: #fff;',
'stroke-width: 2;',
'}',
@@ -427,6 +427,7 @@ Blockly.Css.CONTENT = [
'padding: 0;',
'width: 100%;',
'text-align: center;',
'display: block;',
'}',
/* Edge and IE introduce a close icon when the input value is longer than a