Revision: 12371
          http://sourceforge.net/p/skim-app/code/12371
Author:   hofman
Date:     2021-06-26 18:06:02 +0000 (Sat, 26 Jun 2021)
Log Message:
-----------
Animate insertion with slide up

Modified Paths:
--------------
    trunk/SKBookmarkController.m

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2021-06-26 17:57:07 UTC (rev 12370)
+++ trunk/SKBookmarkController.m        2021-06-26 18:06:02 UTC (rev 12371)
@@ -367,6 +367,8 @@
     [outlineView removeItemsAtIndexes:indexes inParent:OV_ITEM(parent) 
withAnimation:options];
     [parent removeChildrenAtIndexes:indexes];
     indexes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange([indexes 
firstIndex], [newBookmarks count])];
+    if (options != NSTableViewAnimationEffectNone)
+        options = NSTableViewAnimationEffectGap | 
NSTableViewAnimationSlideDown;
     [outlineView insertItemsAtIndexes:indexes inParent:OV_ITEM(parent) 
withAnimation:options];
     [parent insertChildren:newBookmarks atIndexes:indexes];
     if (isPartial == NO)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to