fixed infinite layout recursion

pull/95/head
jmoenig 2020-03-29 19:57:00 +02:00
rodzic 89e5805fe8
commit 2762c857e7
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -2015,7 +2015,7 @@ SyntaxElementMorph.prototype.fixLayout = function () {
var adjustMultiWidth = 0;
if (part instanceof CSlotMorph || (part.slotSpec === '%cs')) {
if (myself.isPredicate) {
part.setWidth(
part.bounds.setWidth(
blockWidth -
ico -
myself.rounding -
@ -2030,7 +2030,9 @@ SyntaxElementMorph.prototype.fixLayout = function () {
}
if (part.slotSpec === '%cs') {
part.inputs().forEach(function (slot) {
slot.setWidth(part.right() - slot.left() - adjustMultiWidth);
slot.bounds.setWidth(
part.right() - slot.left() - adjustMultiWidth
);
});
}
});