diff --git a/0021-compute_layout b/0021-compute_layout index 789aa28..eace928 100644 --- a/0021-compute_layout +++ b/0021-compute_layout @@ -24,7 +24,7 @@ compute_layout = function(node, x,y, nodes_to_render, preserve_screen_top_of_cur else node.w = 0 for i,s in ipairs(node.data) do - local width = love.graphics.getFont():getWidth(s) + local width = love.graphics.getFont():getWidth(s)/Viewport.zoom if node.w < width then node.w = width end end end @@ -33,7 +33,7 @@ compute_layout = function(node, x,y, nodes_to_render, preserve_screen_top_of_cur else update_editor_box(node, preserve_screen_top_of_cursor_node) end - node.h = box_height(node) + node.h = box_height(node) table.insert(nodes_to_render, node) for _,n in ipairs(pending_nodes) do n.w = node.w