fixed layout update for input slots

pull/95/head
jmoenig 2020-04-20 17:25:36 +02:00
rodzic 963923e601
commit 9de53e8ba6
1 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -9275,7 +9275,8 @@ InputSlotMorph.prototype.setChoices = function (dict, readonly) {
InputSlotMorph.prototype.fixLayout = function () {
var width, height, arrowWidth,
contents = this.contents(),
arrow = this.arrow();
arrow = this.arrow(),
tp = this.topBlock();
contents.isNumeric = this.isNumeric;
contents.isEditable = (!this.isReadOnly);
@ -9344,10 +9345,10 @@ InputSlotMorph.prototype.fixLayout = function () {
));
}
if (this.parent) {
if (this.parent.fixLayout) {
this.parent.fixLayout();
}
if (this.parent && this.parent.fixLayout) {
tp.fullChanged();
this.parent.fixLayout();
tp.fullChanged();
}
};