calc an actual per-item height even though CM doesn't seem to care

This commit is contained in:
tophf 2017-11-27 02:59:44 +03:00
parent 170bd0ccb1
commit 841e556f42

View File

@ -276,7 +276,7 @@ function createAppliesToLineWidget(cm) {
height: itemHeight ? section.applies.length * itemHeight : undefined,
});
widget.section = section;
itemHeight = itemHeight || widget.node.offsetHeight;
itemHeight = itemHeight || widget.node.offsetHeight / (section.applies.length || 1);
yield widget;
}
removed.slice(i).forEach(clearWidget);