Revision: 16210
          http://sourceforge.net/p/skim-app/code/16210
Author:   hofman
Date:     2026-05-03 21:16:09 +0000 (Sun, 03 May 2026)
Log Message:
-----------
mark whether view was resized in live resize, viewDidEndLiveResize is called 
also when not resizing on mouse up.

Modified Paths:
--------------
    trunk/SKMainWindowController.h
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h      2026-05-03 17:37:15 UTC (rev 16209)
+++ trunk/SKMainWindowController.h      2026-05-03 21:16:09 UTC (rev 16210)
@@ -174,6 +174,8 @@
         unsigned int caseInsensitiveFilter:1;
         unsigned int highlightAllSearchResults:1;
         unsigned int autoResizeNoteRows:1;
+        unsigned int noteRowHeightsNeedUpdate:1;
+        unsigned int findRowHeightsNeedUpdate:1;
         unsigned int addOrRemoveNotesInBulk:1;
         unsigned int updatingOutlineSelection:1;
         unsigned int updatingThumbnailSelection:1;
@@ -194,7 +196,6 @@
         unsigned int needsCleanup:1;
         unsigned int thumbnailsNeedUpdateAfterPresentaton:1;
         unsigned int thumbnailsUpdatedDuringPresentaton:1;
-        unsigned int findRowHeightsNeedUpdate:1;
     } mwcFlags;
 }
 

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-05-03 17:37:15 UTC (rev 16209)
+++ trunk/SKMainWindowController_UI.m   2026-05-03 21:16:09 UTC (rev 16210)
@@ -2024,14 +2024,18 @@
 }
 
 - (void)handleNoteViewFrameDidChangeNotification:(NSNotification 
*)notification {
-    if (mwcFlags.autoResizeNoteRows && [[notification object] inLiveResize] == 
NO) {
-        [rightSideController.noteOutlineView resetRowHeights];
-        [rightSideController.noteOutlineView 
noteHeightOfRowsChangedAnimating:NO];
+    if (mwcFlags.autoResizeNoteRows) {
+        if ([[notification object] inLiveResize] == NO) {
+            mwcFlags.noteRowHeightsNeedUpdate = YES;
+        } else {
+            [rightSideController.noteOutlineView resetRowHeights];
+            [rightSideController.noteOutlineView 
noteHeightOfRowsChangedAnimating:NO];
+        }
     }
 }
 
 - (void)handleNoteViewDidEndLiveResizeNotification:(NSNotification 
*)notification {
-    if (mwcFlags.autoResizeNoteRows) {
+    if (mwcFlags.noteRowHeightsNeedUpdate && mwcFlags.autoResizeNoteRows) {
         [self resetNoteRowHeights];
     }
 }

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

Reply via email to