Merge driver.love
This commit is contained in:
commit
6a25ec8a92
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue