From 9a9c9b84814ce482aa3ec84760f6812ec8a365c2 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 7 Dec 2025 19:46:11 +0100 Subject: [PATCH] Fixed: CPRuleEditor rows did not resize after being shrunken --- AppKit/CPRuleEditor/CPRuleEditor.j | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AppKit/CPRuleEditor/CPRuleEditor.j b/AppKit/CPRuleEditor/CPRuleEditor.j index f3b3e0726..1910d6153 100644 --- a/AppKit/CPRuleEditor/CPRuleEditor.j +++ b/AppKit/CPRuleEditor/CPRuleEditor.j @@ -1774,7 +1774,12 @@ TODO: implement - (_CPRuleEditorViewSliceRow)_createNewSliceWithFrame:(CGRect)frame ruleEditorView:(CPRuleEditor)editor { - return [[_CPRuleEditorViewSliceRow alloc] initWithFrame:frame ruleEditorView:editor]; + var slice = [[_CPRuleEditorViewSliceRow alloc] initWithFrame:frame ruleEditorView:editor]; + + // Ensure the slice resizes with the editor + [slice setAutoresizingMask:CPViewWidthSizable]; + + return slice; } - (void)_reconfigureSubviewsAnimate:(BOOL)animate