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

853a1f5a6181c005b91ef78b52355fa16aeba57e — František Boháček 4 years ago a163c58
fix: showing unscrollable files correctly
1 files changed, 1 insertions(+), 1 deletions(-)

M lib-gui/src/gui_component_text_view.c
M lib-gui/src/gui_component_text_view.c => lib-gui/src/gui_component_text_view.c +1 -1
@@ 96,7 96,7 @@ void gui_text_view_render(container_t *container, component_t *component,
    x_offset = 0;
  }

  if (y_offset > 0) {
  if (y_offset >= 0) {
    y_offset = 0;
  } else if (y_offset < -(font->size + font->line_spacing) * (text->lines_count) + gui->size.y - container->y) {
    y_offset = -(font->size + font->line_spacing) * (text->lines_count) + gui->size.y - container->y;

Do not follow this link