From 534445f14b475f7c7d4625a22625b4f853f8855a Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Tue, 8 Dec 2020 04:22:29 +0100 Subject: [PATCH] Another fix for splitter rectangle calculation under macOS The rect offset was correctly changed in 04a7a3f150 (Fix drawing outside of the splitter sash under macOS, 2020-12-05), but its size was not. Fix it too now. See #18861. --- src/osx/carbon/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/carbon/renderer.cpp b/src/osx/carbon/renderer.cpp index a49daff549..71e9535c53 100644 --- a/src/osx/carbon/renderer.cpp +++ b/src/osx/carbon/renderer.cpp @@ -353,9 +353,9 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win, HIRect splitterRect; if (orient == wxVERTICAL) - splitterRect = CGRectMake( position, borderAdjust, height, size.y - borderAdjust ); + splitterRect = CGRectMake( position, borderAdjust, height, size.y - 2*borderAdjust ); else - splitterRect = CGRectMake( borderAdjust, position, size.x - borderAdjust, height ); + splitterRect = CGRectMake( borderAdjust, position, size.x - 2*borderAdjust, height ); // under compositing we should only draw when called by the OS, otherwise just issue a redraw command // strange redraw errors occur if we don't do this