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:
parent
2a59e38c54
commit
fb4149f4c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue