summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Dinsmore <nathan@users.noreply.github.com>2015-06-18 16:05:27 -0400
committerNathan Dinsmore <nathan@users.noreply.github.com>2015-06-18 16:05:27 -0400
commite1b104948b5162a014fa752f394d0e722664499c (patch)
tree554c7560bd91d506a70b485ea072157b7eba1dc3
parentbc79cd8df2b6c62a80bb6850697d368cf9acebd5 (diff)
downloadsnap-e1b104948b5162a014fa752f394d0e722664499c.tar.gz
snap-e1b104948b5162a014fa752f394d0e722664499c.zip
Fix InputSlotMorph::fixLayout()
-rw-r--r--blocks.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/blocks.js b/blocks.js
index 8aad311..d023db8 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 {