Revision: 7305
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7305&view=rev
Author:   hofman
Date:     2011-06-21 17:32:55 +0000 (Tue, 21 Jun 2011)

Log Message:
-----------
just check for adjacent views

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

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-06-21 17:10:10 UTC (rev 7304)
+++ trunk/SKFindController.m    2011-06-21 17:32:55 UTC (rev 7305)
@@ -132,13 +132,10 @@
     if (view == nil) {
         NSArray *subviews = [[findBar superview] subviews];
         for (view in subviews) {
-            if (view != findBar) {
-                if ([[findBar superview] isFlipped]) {
-                    if (NSMinY([view frame]) <= NSMaxY([findBar frame])) break;
-                } else {
-                    if (NSMaxY([view frame]) >= NSMinY([findBar frame])) break;
-                }
-            }
+            if (view != findBar &&
+                (fabs(NSMinY([view frame]) - NSMaxY([findBar frame])) <= 0.0 ||
+                 fabs(NSMaxY([view frame]) - NSMinY([findBar frame])) <= 0.0))
+                break;
         }
     }
     


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to