comparison src/gui_photon.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 2ef19eed524a
children f260c1411833
comparison
equal deleted inserted replaced
21354:428b1c6355eb 21355:fcccc29bd386
1754 gui_mch_set_scrollbar_pos(scrollbar_T *sb, int x, int y, int w, int h) 1754 gui_mch_set_scrollbar_pos(scrollbar_T *sb, int x, int y, int w, int h)
1755 { 1755 {
1756 PhArea_t area = {{ x, y }, { w, h }}; 1756 PhArea_t area = {{ x, y }, { w, h }};
1757 1757
1758 PtSetResource(sb->id, Pt_ARG_AREA, &area, 0); 1758 PtSetResource(sb->id, Pt_ARG_AREA, &area, 0);
1759 }
1760
1761 int
1762 gui_mch_get_scrollbar_xpadding(void)
1763 {
1764 // TODO: Calculate the padding for adjust scrollbar position when the
1765 // Window is maximized.
1766 return 0;
1767 }
1768
1769 int
1770 gui_mch_get_scrollbar_ypadding(void)
1771 {
1772 // TODO: Calculate the padding for adjust scrollbar position when the
1773 // Window is maximized.
1774 return 0;
1759 } 1775 }
1760 1776
1761 void 1777 void
1762 gui_mch_create_scrollbar(scrollbar_T *sb, int orient) 1778 gui_mch_create_scrollbar(scrollbar_T *sb, int orient)
1763 { 1779 {