From ca64112eed86aac2e7cf35b0dedfb61ea4e0240f Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 11 Feb 2020 13:55:55 +0100 Subject: work --- src/mo_edit.c | 7 +++---- src/project-base | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mo_edit.c b/src/mo_edit.c index 8ef8d69..d9505f0 100644 --- a/src/mo_edit.c +++ b/src/mo_edit.c @@ -8,7 +8,6 @@ #include "project_base.h" // TODO(Aldrik): delete file of language when deleting language -// TODO(Aldrik): control scrollbar with mouse s32 global_language_id = 1; char project_path[MAX_INPUT_LENGTH]; @@ -564,7 +563,7 @@ int main(int argc, char **argv) term_scroll.scroll = 0; } - term_scroll.height = main_window->height-global_ui_context.layout.offset_y; + term_scroll.height = main_window->height-global_ui_context.layout.offset_y+WIDGET_PADDING; ui_scroll_begin(&term_scroll); { for (s32 i = 0; i < current_project->terms.length; i++) @@ -656,7 +655,7 @@ int main(int argc, char **argv) global_ui_context.layout.offset_x = 310; ui_push_separator(); - trans_scroll.height = main_window->height-global_ui_context.layout.offset_y; + trans_scroll.height = main_window->height-global_ui_context.layout.offset_y+WIDGET_PADDING; ui_scroll_begin(&trans_scroll); { @@ -775,7 +774,7 @@ int main(int argc, char **argv) ui_push_separator(); // languages - lang_scroll.height = main_window->height-global_ui_context.layout.offset_y; + lang_scroll.height = main_window->height-global_ui_context.layout.offset_y+WIDGET_PADDING; ui_scroll_begin(&lang_scroll); { for (s32 i = 0; i < current_project->languages.length; i++) diff --git a/src/project-base b/src/project-base index 4c4c128..807d876 160000 --- a/src/project-base +++ b/src/project-base @@ -1 +1 @@ -Subproject commit 4c4c128faca10d54af6da25891b2fbbb2b8444e6 +Subproject commit 807d87681c5eca52fee692321ae0279324204cc6 -- cgit v1.2.3-70-g09d2