Fix InputSlotMorph::fixLayout()

pull/3/merge
Nathan Dinsmore 2015-06-18 16:05:27 -04:00
rodzic bc79cd8df2
commit e1b104948b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -6947,7 +6947,7 @@ InputSlotMorph.prototype.fixLayout = function () {
if (this.isNumeric) { if (this.isNumeric) {
width = contents.width() width = contents.width()
+ Math.floor(arrowWidth * 0.5) + Math.floor(arrowWidth * 0.5)
+ this.height() + height
+ this.typeInPadding * 2; + this.typeInPadding * 2;
} else { } else {
width = Math.max( width = Math.max(
@ -6964,7 +6964,7 @@ InputSlotMorph.prototype.fixLayout = function () {
this.setExtent(new Point(width, height)); this.setExtent(new Point(width, height));
if (this.isNumeric) { if (this.isNumeric) {
contents.setPosition(new Point( contents.setPosition(new Point(
Math.floor(this.height() / 2), Math.floor(height / 2),
this.edge this.edge
).add(new Point(this.typeInPadding, 0)).add(this.position())); ).add(new Point(this.typeInPadding, 0)).add(this.position()));
} else { } else {