summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-17 20:43:43 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-17 20:43:43 +0200
commit203ec7760d255d9f92950c8779ddfc587d7896e0 (patch)
treee793725ed09467a01a1012bcfe1effea44fe7c39 /src/gui.c
parentf5be8cdb77786f93c23237d7d8162feca92067e2 (diff)
patch 8.2.1228: scrollbars not flush against the window edges when maximisedv8.2.1228
Problem: Scrollbars not flush against the window edges when maximised. Solution: Add padding. (Ken Takata, closes #5602, closes #6466)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index dc408bb88d..4981d7331e 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1418,11 +1418,13 @@ gui_position_components(int total_width UNUSED)
if (gui.which_scrollbars[SBAR_BOTTOM])
gui_mch_set_scrollbar_pos(&gui.bottom_sbar,
text_area_x,
- text_area_y + text_area_height,
+ text_area_y + text_area_height
+ + gui_mch_get_scrollbar_ypadding(),
text_area_width,
gui.scrollbar_height);
gui.left_sbar_x = 0;
- gui.right_sbar_x = text_area_x + text_area_width;
+ gui.right_sbar_x = text_area_x + text_area_width
+ + gui_mch_get_scrollbar_xpadding();
--hold_gui_events;
}