Revision: 7301
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7301&view=rev
Author:   hofman
Date:     2011-06-21 16:48:08 +0000 (Tue, 21 Jun 2011)

Log Message:
-----------
There can be more than 2 subviews when we're hiding the find bar (status bar). 
Find the one next to the find bar.

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

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-06-21 12:56:34 UTC (rev 7300)
+++ trunk/SKFindController.m    2011-06-21 16:48:08 UTC (rev 7301)
@@ -130,10 +130,10 @@
     
     if (view == nil) {
         NSArray *subviews = [[[self view] superview] subviews];
-        if ([subviews count] == 2)
-            view = [subviews objectAtIndex:([subviews objectAtIndex:0] == 
[self view] ? 1 : 0)];
-        else
-            return;
+        for (view in subviews) {
+            if (view != [self view] && NSMaxY([view frame]) >= NSMinY([[self 
view] frame]))
+                break;
+        }
     }
     
        NSRect viewFrame = [view frame];


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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to