Revision: 5407
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5407&view=rev
Author:   hofman
Date:     2009-06-08 17:28:47 +0000 (Mon, 08 Jun 2009)

Log Message:
-----------
don't make assumption about slider layout

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

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2009-06-08 17:05:43 UTC (rev 5406)
+++ trunk/SKNavigationWindow.m  2009-06-08 17:28:47 UTC (rev 5407)
@@ -499,7 +499,7 @@
 
 - (void)drawBarInside:(NSRect)frame flipped:(BOOL)flipped {
     frame.origin.x += 2.5;
-    frame.origin.y += 0.5 * NSHeight(frame) - 2.0;
+    frame.origin.y = NSMidY(frame) - 2.0;
     frame.size.width -= 5.0;
     frame.size.height = 5.0;
        
@@ -517,8 +517,8 @@
 }
 
 - (void)drawKnob:(NSRect)frame {
-    frame.origin.x += 3.0;
-    frame.origin.y += 3.0;
+    frame.origin.x = NSMidX(frame) - 7.5;
+    frame.origin.y = NSMidY(frame) - 7.5;
     frame.size.height = 15.0;
     frame.size.width = 15.0;
     


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to