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

Log Message:
-----------
fix check for flipped superview

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

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-06-21 16:52:00 UTC (rev 7302)
+++ trunk/SKFindController.m    2011-06-21 17:05:37 UTC (rev 7303)
@@ -132,8 +132,13 @@
     if (view == nil) {
         NSArray *subviews = [[findBar superview] subviews];
         for (view in subviews) {
-            if (view != findBar && NSMaxY([view frame]) >= NSMinY([findBar 
frame]))
-                break;
+            if (view != findBar) {
+                if ([[findBar superview] isFlipped]) {
+                    if (NSMaxY([view frame]) >= NSMinY([findBar frame])) break;
+                } else {
+                    if (NSMinY([view frame]) <= NSMaxY([findBar frame])) 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