Enable nested auto-wrapping by default

pull/29/head
jmoenig 2016-11-28 17:59:04 +01:00
rodzic d43ebe6428
commit cd22b94e0b
3 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -5328,7 +5328,7 @@ ScriptsMorph.prototype.cleanUpMargin = 20;
ScriptsMorph.prototype.cleanUpSpacing = 15;
ScriptsMorph.prototype.isPreferringEmptySlots = true;
ScriptsMorph.prototype.enableKeyboard = true;
ScriptsMorph.prototype.enableNestedAutoWrapping = false;
ScriptsMorph.prototype.enableNestedAutoWrapping = true;
// ScriptsMorph instance creation:

12
gui.js
Wyświetl plik

@ -72,7 +72,7 @@ isRetinaSupported, SliderMorph, Animation*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2016-November-25';
modules.gui = '2016-November-28';
// Declarations
@ -2038,10 +2038,10 @@ IDE_Morph.prototype.applySavedSettings = function () {
}
// nested auto-wrapping
if (autoWrapping) {
ScriptsMorph.prototype.enableNestedAutoWrapping = true;
} else {
if (autoWrapping === 'false') {
ScriptsMorph.prototype.enableNestedAutoWrapping = false;
} else {
ScriptsMorph.prototype.enableNestedAutoWrapping = true;
}
// plain prototype labels
@ -2551,9 +2551,9 @@ IDE_Morph.prototype.settingsMenu = function () {
ScriptsMorph.prototype.enableNestedAutoWrapping =
!ScriptsMorph.prototype.enableNestedAutoWrapping;
if (ScriptsMorph.prototype.enableNestedAutoWrapping) {
myself.saveSetting('autowrapping', true);
} else {
myself.removeSetting('autowrapping');
} else {
myself.saveSetting('autowrapping', false);
}
},
ScriptsMorph.prototype.enableNestedAutoWrapping,

Wyświetl plik

@ -3147,3 +3147,4 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
* Blocks: added symbols for “turnBack” and “turnForward”
* Morphic: added support for floating tool bars in scroll frames
* Blocks: added dynamic “undo” / “redo” buttons to each scripting pane
* GUI, Blocks: Enable nested auto-wrapping by default