Assign gutter widht on editor view when painting element

This commit is contained in:
Max Brunsfeld 2023-11-08 17:01:50 -08:00
parent 15f6fbf53b
commit 86865431b9
2 changed files with 5 additions and 4 deletions

View file

@ -1468,6 +1468,7 @@ impl EditorElement {
gutter_margin = Pixels::ZERO;
};
editor.gutter_width = gutter_width;
let text_width = bounds.size.width - gutter_width;
let overscroll = size(em_width, px(0.));
let snapshot = {