Merge driver.love

This commit is contained in:
Kartik K. Agaram 2023-10-25 21:30:27 -07:00
commit 6a25ec8a92
1 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,11 @@ update_editor_box = function(node, skip_updating_screen_top_for)
if node.editor == nil then return end
if node.editor.font_height ~= scale(20) then
edit.update_font_settings(node.editor, scale(20))
Text.redraw_all(node.editor)
end
node.editor.left = math.floor(vx(node.x))
node.editor.right = math.ceil(vx(node.x+node.w))
node.editor.width = node.editor.right - node.editor.left
Text.redraw_all(node.editor)
if node.y > Viewport.y then
if node ~= skip_updating_screen_top_for then
node.editor.screen_top1.line = 1
@ -16,7 +19,4 @@ update_editor_box = function(node, skip_updating_screen_top_for)
node.editor.top = node.editor.top + Menu_bar_height
end
end
node.editor.left = math.floor(vx(node.x))
node.editor.right = math.ceil(vx(node.x+node.w))
node.editor.width = node.editor.right - node.editor.left
end