snap.love/0050-node_height

4 lines
151 B
Plaintext

node_height = function(node)
-- we store the node's height internally, but it can be too small
return math.max(node.h, 3*node.editor.line_height)
end