fixed numeric input fields in dialog boxes

pull/95/head
jmoenig 2020-07-27 16:41:04 +02:00
rodzic bb3b5c2a27
commit 7739c1099e
3 zmienionych plików z 39 dodań i 6 usunięć

Wyświetl plik

@ -2,10 +2,40 @@
## in development:
## 6.1.0 - dev - :
* **New Features:**
* fade blocks
* **Notable Changes:**
* changed label of green "length of" reporter to "length of text"
* new iconic buttons for grow, shrink and flip actions in the paint editor, thanks, Jadga!
* UI: automatically switch to scripts tab when dragging a block into the editor pane
* slightly darker default (non-flat) IDE colors, more cotrast
* enabled grouping the libraries dialog, thanks, Brian!
* cleaned up, grouped and annotated libraries, thanks, Brian!
* updated "About Snap!" dialog box
* **Notable Fixes:**
* fixed FOR EACH for hybrid lists, thanks, Brian!
* fixed script execution behavior when turning turbo mode off programmatically, thanks, Jadga, for reporting it.
* fixed keyboard shortcuts for saving projects (ctrl + s), finding blocks (ctrl + f) etc..
* fixed shift-key constrain mode and "clear" in paint and vector editors, thanks, Joan!
* made remaining synchronous http requests asynch (url: #open, #run)
* update the Hand's position on mouse-down - avoid triggering at the origin point if clicking before the mouse has been moved
* fixed a list-watcher direct-editing index offset bug
* fixed input slider target update rendering
* fixed sprite speech balloon display for sounds
* library browser: import selected library on pressing enter
* fixed binding contexts to other receivers (variable scope for ASK / TELL)
* fixed numeric input fields in dialog boxes
* **Documentation Updates:**
* added migration guide for Morphic2/Snap!6
* **Translation Updates:**
* German
### 2020-07-27
* threads: fixed binding contexts to other receivers (variable scope for ASK / TELL)
* gui: updated "About Snap!" dialog box
* gui: library browser: import selected library on pressing enter
* widgets: fixed numeric input fields in dialog boxes
### 2020-07-26
* objects: fixed sprite speech balloon display for sounds
@ -69,7 +99,7 @@
* threads: fixed FOR EACH for hybrid lists, thanks, Brian!
* threads: fixed script execution behavior when turning turbo mode off programmatically, thanks, Jadga, for reporting it.
* locale: added English translation for 'length of %s' to 'length of text %s' to avoid confusion among both blocks
* updated German translation for 'length of %s'
* updated German translation for 'length of %s'
## 6.0.0:
* **New Features:**

Wyświetl plik

@ -2,11 +2,11 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Snap! Build Your Own Blocks 6.0.1 - dev -</title>
<title>Snap! Build Your Own Blocks 6.1.0 - dev -</title>
<link rel="icon" href="src/favicon.ico">
<script src="src/morphic.js?version=2020-07-23"></script>
<script src="src/symbols.js?version=2020-07-21"></script>
<script src="src/widgets.js?version=2020-07-24"></script>
<script src="src/widgets.js?version=2020-07-27"></script>
<script src="src/blocks.js?version=2020-07-24"></script>
<script src="src/threads.js?version=2020-07-27"></script>
<script src="src/objects.js?version=2020-07-26"></script>

Wyświetl plik

@ -85,7 +85,7 @@ HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph,
ArrowMorph, MenuMorph, isString, isNil, SliderMorph, MorphicPreferences,
ScrollFrameMorph, MenuItemMorph, Note*/
modules.widgets = '2020-July-24';
modules.widgets = '2020-July-27';
var PushButtonMorph;
var ToggleButtonMorph;
@ -2900,7 +2900,11 @@ InputFieldMorph.prototype.init = function (
choiceDict,
isReadOnly
) {
var contents = new StringFieldMorph(text || ''),
var contents = new StringFieldMorph(
text || '',
null, null, null, null, null,
isNumeric || false
),
arrow = new ArrowMorph(
'down',
0,
@ -2916,7 +2920,6 @@ InputFieldMorph.prototype.init = function (
contents.fixLayout();
this.oldContentsExtent = contents.extent();
this.isNumeric = isNumeric || false;
InputFieldMorph.uber.init.call(this);
this.color = WHITE;