From e711557fdfc7b7fee903559e5fb9fd62519bbf11 Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Tue, 21 Dec 2021 09:41:15 -0600 Subject: [PATCH] fix textbox styling --- editor/imgui.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))