Revision: 5401
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5401&view=rev
Author:   hofman
Date:     2009-06-06 17:07:50 +0000 (Sat, 06 Jun 2009)

Log Message:
-----------
overlap subviews of scrollview placard view on divider

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

Modified: trunk/NSScrollView_SKExtensions.m
===================================================================
--- trunk/NSScrollView_SKExtensions.m   2009-06-06 14:26:52 UTC (rev 5400)
+++ trunk/NSScrollView_SKExtensions.m   2009-06-06 17:07:50 UTC (rev 5401)
@@ -159,13 +159,13 @@
     NSView *view = [viewEnum nextObject];
     CGFloat f = [[self window] isMainWindow] || [[self window] isKeyWindow] ? 
1.0 : 0.33333;
     while (view = [viewEnum nextObject]) {
-        divRect.origin.x = NSMinX([view frame]) - 1;
+        divRect.origin.x = NSMinX([view frame]);
         [divImage drawInRect:divRect fromRect:divSrcRect 
operation:NSCompositeSourceOver fraction:f];
     }
 }
 
 - (void)tile {
-    NSSize size = NSMakeSize(1.0, [NSScroller scrollerWidth]);
+    NSSize size = NSMakeSize(0.0, [NSScroller scrollerWidth]);
     NSEnumerator *viewEnum = [[self subviews] objectEnumerator];
     NSView *view;
     while (view = [viewEnum nextObject]) {
@@ -174,8 +174,9 @@
         rect.origin.y = 0.0;
         rect.size.height = size.height;
         [view setFrame:rect];
-        size.width += NSWidth(rect) + 1.0;
+        size.width += NSWidth(rect) - 1.0;
     }
+    size.width += 1.0;
     [self setFrameSize:size];
 }
 


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

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to