Updated bounds after pos change and added btn width check. Fixes #1116

dev
Brian Broll 2016-01-26 12:58:24 -06:00
rodzic e9f2bb2c93
commit 937e46fd9d
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -2513,6 +2513,12 @@ DialogBoxMorph.prototype.fixLayout = function () {
+ this.buttons.height()
+ this.padding
);
this.silentSetWidth(Math.max(
this.width(),
this.buttons.width()
+ (2 * this.padding)
)
);
this.buttons.setCenter(this.center());
this.buttons.setBottom(this.bottom() - this.padding);
}
@ -2927,6 +2933,7 @@ AlignmentMorph.prototype.fixLayout = function () {
))
);
}
cfb = c.fullBounds();
newBounds = newBounds.merge(cfb);
} else {
newBounds = cfb;