summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 6c9783b..983f51c 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1022,7 +1022,7 @@ void ui_push_textf_width(font *f, char *text, s32 maxw)
s32 text_y = y + (BLOCK_HEIGHT/2) - (f->px_h/2) + spacing_y;
s32 total_w = maxw +
WIDGET_PADDING + WIDGET_PADDING;
-
+ maxw -= (WIDGET_PADDING*2);
if (global_ui_context.layout.block_height < f->px_h)
global_ui_context.layout.block_height = f->px_h+5;
@@ -1097,7 +1097,7 @@ bool ui_push_text_width(char *text, s32 maxw, bool active)
if (global_ui_context.layout.block_height < global_ui_context.font_small->px_h)
global_ui_context.layout.block_height = global_ui_context.font_small->px_h+5;
-
+ maxw -= (WIDGET_PADDING*2);
if (active)
{
bool hovered = false;