~ruther/CTU-FEE-B0B35APO-Semestral-project

b5b9794a1780a2aaf0d87374d0cb631dc0b82452 — František Boháček 3 years ago 47ee5b1
fix: dialog fill unused space
1 files changed, 1 insertions(+), 1 deletions(-)

M lib-gui/src/dialog.c
M lib-gui/src/dialog.c => lib-gui/src/dialog.c +1 -1
@@ 112,7 112,7 @@ static void *dialog_construct(window_t *window, void *state) {

  dstate->dialog_component = gui_one_container_set_component(
      one_container,
      gui_text_create(&dstate->dialog_text, DIALOG_PADDING, DIALOG_PADDING, DIALOG_WIDTH - 2*DIALOG_PADDING, DIALOG_HEIGHT - one_container->y - DIALOG_PADDING*2));
      gui_text_create(&dstate->dialog_text, DIALOG_PADDING, DIALOG_PADDING, DIALOG_WIDTH - 2*DIALOG_PADDING, DIALOG_HEIGHT));

  // register commands
  commands_register(gui->commands, IN_KEYBOARD, 0, command_handler_close, dstate);

Do not follow this link