From 187e21d2adf381ca99480fec4cc7da2cc65c5993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Mon, 28 Jun 2021 22:19:10 +0200 Subject: [PATCH] fix: window browser path text size --- file-browser/src/window_browser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file-browser/src/window_browser.c b/file-browser/src/window_browser.c index faa623d..7be3636 100644 --- a/file-browser/src/window_browser.c +++ b/file-browser/src/window_browser.c @@ -1,4 +1,5 @@ #include "window_browser.h" +#include "dialog.h" #include "display_utils.h" #include "file_access.h" #include "file_open.h" @@ -130,7 +131,7 @@ static void *browser_window_construct(window_t *window, void *state) { // containers init // group components init - component_t path_text = gui_text_create(&bstate->text_state, 3, 3, 0, 0); + component_t path_text = gui_text_create(&bstate->text_state, 3, 3, bstate->gui->size.x, 0); component_t line_component = gui_line_create(&WHITE_PIXEL, 0, path_text.height + path_text.y + 3, 1000, 1); gui_group_container_add_component(&window->containers[1], path_text); -- 2.49.0