From e1b104948b5162a014fa752f394d0e722664499c Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Thu, 18 Jun 2015 16:05:27 -0400 Subject: [PATCH] Fix InputSlotMorph::fixLayout() --- blocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks.js b/blocks.js index 8aad3114..d023db87 100644 --- a/blocks.js +++ b/blocks.js @@ -6947,7 +6947,7 @@ InputSlotMorph.prototype.fixLayout = function () { if (this.isNumeric) { width = contents.width() + Math.floor(arrowWidth * 0.5) - + this.height() + + height + this.typeInPadding * 2; } else { width = Math.max( @@ -6964,7 +6964,7 @@ InputSlotMorph.prototype.fixLayout = function () { this.setExtent(new Point(width, height)); if (this.isNumeric) { contents.setPosition(new Point( - Math.floor(this.height() / 2), + Math.floor(height / 2), this.edge ).add(new Point(this.typeInPadding, 0)).add(this.position())); } else {