diff options
Diffstat (limited to 'src/mo_edit.c')
| -rw-r--r-- | src/mo_edit.c | 7 |
1 files changed, 3 insertions, 4 deletions
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++) |
