Revision: 10189
          http://sourceforge.net/p/skim-app/code/10189
Author:   hofman
Date:     2018-12-28 13:35:04 +0000 (Fri, 28 Dec 2018)
Log Message:
-----------
set image alignment and scaling of image cell, and let it calculate position of 
image

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

Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m   2018-12-28 13:30:25 UTC (rev 10188)
+++ trunk/SKNoteOutlineView.m   2018-12-28 13:35:04 UTC (rev 10189)
@@ -161,19 +161,16 @@
             [image setTemplate:YES];
             
             resizeIndicatorCell = [[NSImageCell alloc] initImageCell:image];
+            [resizeIndicatorCell setImageScaling:NSImageScaleNone];
+            [resizeIndicatorCell setImageAlignment:NSImageAlignBottom];
             [image release];
         }
         
-        NSRect rect = [self rectOfRow:row];
-        rect.origin.x = ceil(NSMidX(rect)) - 3.0;
-        rect.origin.y = NSMaxY(rect) - 4.0;
-        rect.size.width = 6.0;
-        rect.size.height = 3.0;
         if ([[self window] isKeyWindow] && [[self window] firstResponder] == 
self && [self isRowSelected:row])
             [resizeIndicatorCell setBackgroundStyle:NSBackgroundStyleDark];
         else
             [resizeIndicatorCell setBackgroundStyle:NSBackgroundStyleLight];
-        [resizeIndicatorCell drawWithFrame:rect inView:self];
+        [resizeIndicatorCell drawWithFrame:[self rectOfRow:row] inView:self];
     }
 }
 

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