Skip to content
Snippets Groups Projects
Commit dd21d0a7 authored by George Nachman's avatar George Nachman
Browse files

Merge pull request #248 from roandelyf/master

Fix find view invocation/dismissal animation when height is less than radius.
parents 4828f213 3a9809af
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -17,7 +17,7 @@
float height = frame.size.height - 1;
float width = frame.size.width - 1;
float x = 0.5;
float y = 0;
float y = MIN(0, height - 2*radius);
float nx, ny;
[path moveToPoint:NSMakePoint(x, y)];
nx = x+radius;
Loading
Loading
@@ -26,7 +26,7 @@
controlPoint1:NSMakePoint((nx+x)/2, y)
controlPoint2:NSMakePoint(nx, (ny+y)/2)];
y = ny;
ny = y + height - 2*radius;
ny = y + MAX(0, height - 2*radius)
[path lineToPoint:NSMakePoint(nx, ny)];
x = nx; y = ny;
nx = x + radius;
Loading
Loading
@@ -44,7 +44,7 @@
controlPoint1:NSMakePoint((nx+x)/2, y)
controlPoint2:NSMakePoint(nx, (ny+y)/2)];
y = ny;
ny = y - height + 2*radius;
ny = y - MAX(0, height - 2*radius);
[path lineToPoint:NSMakePoint(nx, ny)];
x = nx; y = ny;
nx = x + radius;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment