Revision: 16289
http://sourceforge.net/p/skim-app/code/16289
Author: hofman
Date: 2026-05-12 14:54:52 +0000 (Tue, 12 May 2026)
Log Message:
-----------
always reset rowheights for note outlineview when changing font
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKNoteOutlineView.h
trunk/SKNoteOutlineView.m
trunk/SKOutlineView.h
trunk/SKOutlineView.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-05-12 14:36:08 UTC (rev 16288)
+++ trunk/SKMainWindowController.m 2026-05-12 14:54:52 UTC (rev 16289)
@@ -839,8 +839,6 @@
- (void)updateTableFont {
NSFont *font = [NSFont systemFontOfSize:[[NSUserDefaults
standardUserDefaults] floatForKey:SKTableFontSizeKey]];
- if (mwcFlags.autoResizeNoteRows)
- [rightSideController.noteOutlineView resetRowHeights];
[leftSideController.tocOutlineView setFont:font];
[rightSideController.noteOutlineView setFont:font];
[leftSideController.findTableView setFont:font];
Modified: trunk/SKNoteOutlineView.h
===================================================================
--- trunk/SKNoteOutlineView.h 2026-05-12 14:36:08 UTC (rev 16288)
+++ trunk/SKNoteOutlineView.h 2026-05-12 14:54:52 UTC (rev 16289)
@@ -56,7 +56,6 @@
- (CGFloat)rowHeightForItem:(id)item;
- (void)setRowHeight:(CGFloat)rowHeight forItem:(id)item;
- (void)resetRowHeights;
-- (void)noteHeightOfRowsChanged;
@end
Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m 2026-05-12 14:36:08 UTC (rev 16288)
+++ trunk/SKNoteOutlineView.m 2026-05-12 14:54:52 UTC (rev 16289)
@@ -120,7 +120,7 @@
- (void)noteHeightOfRowsChanged {
[rowHeights removeAllObjects];
- [self noteHeightOfRowsWithIndexesChanged:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfRows])]];
+ [super noteHeightOfRowsChanged];
}
- (void)mouseDown:(NSEvent *)theEvent {
Modified: trunk/SKOutlineView.h
===================================================================
--- trunk/SKOutlineView.h 2026-05-12 14:36:08 UTC (rev 16288)
+++ trunk/SKOutlineView.h 2026-05-12 14:54:52 UTC (rev 16289)
@@ -82,6 +82,8 @@
- (void)reloadTypeSelectStrings;
+- (void)noteHeightOfRowsChanged;
+
@property (nullable, weak) id<SKOutlineViewDelegate> delegate;
@end
Modified: trunk/SKOutlineView.m
===================================================================
--- trunk/SKOutlineView.m 2026-05-12 14:36:08 UTC (rev 16288)
+++ trunk/SKOutlineView.m 2026-05-12 14:54:52 UTC (rev 16289)
@@ -235,7 +235,7 @@
[[view textField] setFont:newFont];
}
}];
- [self noteHeightOfRowsWithIndexesChanged:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfRows])]];
+ [self noteHeightOfRowsChanged];
}
}
@@ -250,6 +250,10 @@
return view;
}
+- (void)noteHeightOfRowsChanged {
+ [self noteHeightOfRowsWithIndexesChanged:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfRows])]];
+}
+
- (void)viewDidMoveToWindow {
[super viewDidMoveToWindow];
if ([self window] == nil)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit