Revision: 12742
          http://sourceforge.net/p/skim-app/code/12742
Author:   hofman
Date:     2022-01-24 15:43:40 +0000 (Mon, 24 Jan 2022)
Log Message:
-----------
Round off row height when dragging divider

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

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2022-01-24 15:38:12 UTC (rev 12741)
+++ trunk/SKNoteOutlineView.m   2022-01-24 15:43:40 UTC (rev 12742)
@@ -115,7 +115,7 @@
                 while ([theEvent type] != NSLeftMouseUp) {
                     theEvent = [[self window] nextEventMatchingMask: 
NSLeftMouseUpMask | NSLeftMouseDraggedMask];
                     if ([theEvent type] == NSLeftMouseDragged) {
-                        CGFloat currentHeight = fmax([self rowHeight], 
startHeight + [theEvent locationInView:self].y - mouseLoc.y);
+                        CGFloat currentHeight = fmax([self rowHeight], 
round(startHeight + [theEvent locationInView:self].y - mouseLoc.y));
                         [[self delegate] outlineView:self 
setHeight:currentHeight ofRowByItem:item];
                         [self noteHeightOfRowsChangedAnimating: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