comparison src/gui.c @ 21355:fcccc29bd386 v8.2.1228

patch 8.2.1228: scrollbars not flush against the window edges when maximised Commit: https://github.com/vim/vim/commit/203ec7760d255d9f92950c8779ddfc587d7896e0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 17 20:43:43 2020 +0200 patch 8.2.1228: scrollbars not flush against the window edges when maximised Problem: Scrollbars not flush against the window edges when maximised. Solution: Add padding. (Ken Takata, closes https://github.com/vim/vim/issues/5602, closes https://github.com/vim/vim/issues/6466)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Jul 2020 20:45:07 +0200
parents 244ef6caf671
children f260c1411833
comparison
equal deleted inserted replaced
21354:428b1c6355eb 21355:fcccc29bd386
1416 gui_position_menu(); 1416 gui_position_menu();
1417 #endif 1417 #endif
1418 if (gui.which_scrollbars[SBAR_BOTTOM]) 1418 if (gui.which_scrollbars[SBAR_BOTTOM])
1419 gui_mch_set_scrollbar_pos(&gui.bottom_sbar, 1419 gui_mch_set_scrollbar_pos(&gui.bottom_sbar,
1420 text_area_x, 1420 text_area_x,
1421 text_area_y + text_area_height, 1421 text_area_y + text_area_height
1422 + gui_mch_get_scrollbar_ypadding(),
1422 text_area_width, 1423 text_area_width,
1423 gui.scrollbar_height); 1424 gui.scrollbar_height);
1424 gui.left_sbar_x = 0; 1425 gui.left_sbar_x = 0;
1425 gui.right_sbar_x = text_area_x + text_area_width; 1426 gui.right_sbar_x = text_area_x + text_area_width
1427 + gui_mch_get_scrollbar_xpadding();
1426 1428
1427 --hold_gui_events; 1429 --hold_gui_events;
1428 } 1430 }
1429 1431
1430 /* 1432 /*