14 lines
272 B
Plaintext
14 lines
272 B
Plaintext
|
compute_layout = function(node, x,y)
|
||
|
if node.type == 'text' and node.width then
|
||
|
node.x = x
|
||
|
node.y = y
|
||
|
node.w = node.width
|
||
|
node.h = box_height(node)
|
||
|
end
|
||
|
return node
|
||
|
end
|
||
|
|
||
|
--[[
|
||
|
edit.draw(obj.editor, obj.fg or {r=0,g=0,b=0}, true) -- hide cursor
|
||
|
end
|
||
|
]]
|