diff --git a/edit/applies-to-line-widget.js b/edit/applies-to-line-widget.js index a35e541a..60161020 100644 --- a/edit/applies-to-line-widget.js +++ b/edit/applies-to-line-widget.js @@ -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);