regression: revert commit d54fc8ec3a

I don't follow why luaML doesn't need this, but driver does.

Scenario: press ctrl+- repeatedly
Before this commit text was overflowing boxes.
This commit is contained in:
Kartik K. Agaram 2023-04-30 22:36:09 -07:00
parent 2a59e38c54
commit fb4149f4c7
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ update_editor_box = function(node, preserve_screen_top_of_cursor_node)
else
node.editor.screen_top1, node.editor.top = schema1_of_y(node.editor, -vy(node.y))
end
if node.editor.font_height ~= scale(20) then
edit.update_font_settings(node.editor, scale(20))
end
node.editor.left = math.floor(vx(node.x)) + Line_number_width*App.width('m')
node.editor.right = math.ceil(vx(node.x+node.w))
node.editor.width = node.editor.right - node.editor.left