Fixed: CPRuleEditor rows did not resize after being shrunken

This commit is contained in:
daboe01 committed 2025-12-07 19:46:11 +01:00
1 parent e02107102c
commit 9a9c9b8481
1 file changed
+6 -1
+6 -1
View File
@@ -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