From 1f706d23631f2e7bf6acfbf274ec0b973a7eff04 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 12 Mar 2020 23:34:53 +0100 Subject: [PATCH] migrated make-a-variable dialog --- src/byob.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/byob.js b/src/byob.js index a503232a..ad919bb7 100644 --- a/src/byob.js +++ b/src/byob.js @@ -1847,7 +1847,6 @@ BlockDialogMorph.prototype.addTypeButton = function (action, label, query) { button.outlineGradient = this.buttonOutlineGradient; button.contrast = this.buttonContrast; - button.drawNew(); button.fixLayout(); this.types.add(button); return button; @@ -3839,8 +3838,8 @@ VariableDialogMorph.prototype.fixLayout = function () { this.padding, th + this.padding ))); - this.silentSetWidth(this.body.width() + this.padding * 2); - this.silentSetHeight( + this.bounds.setWidth(this.body.width() + this.padding * 2); + this.bounds.setHeight( this.body.height() + this.padding * 2 + th @@ -3854,12 +3853,12 @@ VariableDialogMorph.prototype.fixLayout = function () { if (this.types) { this.types.fixLayout(); - this.silentSetHeight( + this.bounds.setHeight( this.height() + this.types.height() + this.padding ); - this.silentSetWidth(Math.max( + this.bounds.setWidth(Math.max( this.width(), this.types.width() + this.padding * 2 )); @@ -3873,7 +3872,7 @@ VariableDialogMorph.prototype.fixLayout = function () { if (this.buttons && (this.buttons.children.length > 0)) { this.buttons.fixLayout(); - this.silentSetHeight( + this.bounds.setHeight( this.height() + this.buttons.height() + this.padding