From 033584d948c942b1fc1fc20b2dd9610c25050b49 Mon Sep 17 00:00:00 2001 From: Bernat Romagosa Date: Fri, 28 Jul 2017 13:22:01 +0200 Subject: [PATCH] fixed note label position in PianoMenuMorph --- blocks.js | 51 +-------------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/blocks.js b/blocks.js index 4d183350..773effbd 100644 --- a/blocks.js +++ b/blocks.js @@ -182,55 +182,6 @@ var NoteInputMorph; var PianoMenuMorph; var KeyItemMorph; -WorldMorph.prototype.customMorphs = function () { - // add examples to the world's demo menu - return []; - -/* - return [ - new SymbolMorph( - 'notes', - 50, - new Color(250, 250, 250), - new Point(-1, -1), - new Color(20, 20, 20) - ) - ]; -*/ -/* - var sm = new ScriptsMorph(); - sm.setExtent(new Point(800, 600)); - - return [ - new SymbolMorph(), - new HatBlockMorph(), - new CommandBlockMorph(), - sm, - new CommandSlotMorph(), - new CSlotMorph(), - new InputSlotMorph(), - new InputSlotMorph(null, true), - new BooleanSlotMorph(), - new ColorSlotMorph(), - new TemplateSlotMorph('foo'), - new ReporterBlockMorph(), - new ReporterBlockMorph(true), - new ArrowMorph(), - new MultiArgMorph(), - new FunctionSlotMorph(), - new ReporterSlotMorph(), - new ReporterSlotMorph(true), -// new DialogBoxMorph('Dialog Box'), -// new InputFieldMorph('Input Field') - new RingMorph(), - new RingCommandSlotMorph(), - new RingReporterSlotMorph(), - new RingReporterSlotMorph(true) - ]; -*/ -}; - - // SyntaxElementMorph ////////////////////////////////////////////////// // I am the ancestor of all blocks and input slots @@ -9761,7 +9712,7 @@ PianoMenuMorph.prototype.drawNew = function () { item.setPosition(keyposition); myself.add(item); }); - label.setPosition(new Point(90, 45)); + label.setPosition(new Point(90, 2)); this.add(label); fb = this.fullBounds(); this.silentSetExtent(fb.extent().add(4));