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.
This commit is contained in:
committed by
Vadim Zeitlin
parent
27d6dce48d
commit
534445f14b
@@ -353,9 +353,9 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
|||||||
|
|
||||||
HIRect splitterRect;
|
HIRect splitterRect;
|
||||||
if (orient == wxVERTICAL)
|
if (orient == wxVERTICAL)
|
||||||
splitterRect = CGRectMake( position, borderAdjust, height, size.y - borderAdjust );
|
splitterRect = CGRectMake( position, borderAdjust, height, size.y - 2*borderAdjust );
|
||||||
else
|
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
|
// 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
|
// strange redraw errors occur if we don't do this
|
||||||
|
Reference in New Issue
Block a user