diff --git a/editor/imgui.fnl b/editor/imgui.fnl index 55c8bc6..da8ac0a 100644 --- a/editor/imgui.fnl +++ b/editor/imgui.fnl @@ -202,7 +202,7 @@ (fn textbox [form text] (local {: font : color : w : h : x : y : xpad : ypad : color : view : tag} - (with-style form :h #(+ ($1.font:get_height) $1.xpad))) + (with-style form :h #(+ ($1.font:get_height) $1.ypad))) (var textNew (or text "")) (local (hText xText yText) (values (font:get_height) (+ x (/ xpad 2)) (+ y (/ ypad 2)))) (local initial-press (= view.imstate.left :pressed))