From 812f69f4a7f5dbabd9a6f776009e496025de1cc0 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Wed, 24 Sep 2025 14:20:37 +0200 Subject: [PATCH] fixed: missing splitView:effectiveRect:forDrawnRect:ofDividerAtIndex: --- AppKit/CPSplitViewController.j | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AppKit/CPSplitViewController.j b/AppKit/CPSplitViewController.j index bacf9195d..fe23f53df 100644 --- a/AppKit/CPSplitViewController.j +++ b/AppKit/CPSplitViewController.j @@ -262,6 +262,13 @@ var CPSplitViewControllerAutomaticDimension = -1.0; return proposedMaximumPosition; } +- (CGRect)splitView:(CPSplitView)splitView effectiveRect:(CGRect)proposedEffectiveRect forDrawnRect:(CGRect)drawnRect ofDividerAtIndex:(CPInteger)dividerIndex +{ + // Default behavior: return the proposed rectangle. + // This can be overridden to provide a larger or custom hit area for the divider. + return proposedEffectiveRect; +} + - (void)splitViewDidResizeSubviews:(CPNotification)notification { // Can be used to respond to user-initiated resizing.