enabled toggling between list- and table views inside speech balloons

pull/95/head
jmoenig 2020-04-11 16:43:30 +02:00
rodzic 576e60260b
commit 8a971851d6
2 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -62,7 +62,7 @@ CellMorph, ArrowMorph, MenuMorph, snapEquals, Morph, isNil, localize, isString,
MorphicPreferences, TableDialogMorph, SpriteBubbleMorph, SpeechBubbleMorph,
TableFrameMorph, TableMorph, Variable, isSnapObject, Costume, contains*/
modules.lists = '2020-March-18';
modules.lists = '2020-April-11';
var List;
var ListWatcherMorph;
@ -955,7 +955,6 @@ ListWatcherMorph.prototype.showTableView = function () {
} else if (view instanceof SpeechBubbleMorph) {
view.contents = new TableFrameMorph(new TableMorph(this.list, 10));
view.contents.expand(this.extent());
view.drawNew(true);
} else { // watcher cell
view.drawNew(true, 'table');
view.contentsMorph.expand(this.extent());

Wyświetl plik

@ -70,7 +70,7 @@ SpriteMorph, Context, Costume, BlockEditorMorph, SymbolMorph, List,
SyntaxElementMorph, MenuMorph, SpriteBubbleMorph, SpeechBubbleMorph, Sound,
CellMorph, ListWatcherMorph, isNil, BoxMorph, Variable, isSnapObject*/
modules.tables = '2020-April-09';
modules.tables = '2020-April-11';
var Table;
var TableCellMorph;
@ -1084,7 +1084,6 @@ TableMorph.prototype.showListView = function () {
view.contents = new ListWatcherMorph(this.table);
view.contents.step = view.contents.update;
view.contents.expand(this.extent());
view.drawNew(true);
} else { // watcher cell
view.drawNew(true);
view.contentsMorph.expand(this.extent());