Skip to content

Commit

Permalink
Removed whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
animecyc committed Dec 30, 2013
1 parent 7f04a85 commit 5525b17
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ios/Classes/TiDraggableGesture.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ - (void)setConfig:(id)args
- (void)panDetected:(UIPanGestureRecognizer *)panRecognizer
{
ENSURE_UI_THREAD_1_ARG(panRecognizer);

if ([TiUtils boolValue:[self valueForKey:@"enabled"] def:YES] == NO)
{
return;
}

NSString* axis = [self valueForKey:@"axis"];
NSInteger maxLeft = [[self valueForKey:@"maxLeft"] floatValue];
NSInteger minLeft = [[self valueForKey:@"minLeft"] floatValue];
Expand Down Expand Up @@ -199,21 +199,21 @@ - (void)panDetected:(UIPanGestureRecognizer *)panRecognizer
}

LayoutConstraint* layoutProperties = [self.proxy layoutProperties];

if ([self valueForKey:@"axis"] == nil || [[self valueForKey:@"axis"] isEqualToString:@"x"])
{
layoutProperties->left = TiDimensionDip(newCenter.x - size.width / 2);

if (ensureRight)
{
layoutProperties->right = TiDimensionDip(layoutProperties->left.value * -1);
}
}

if ([self valueForKey:@"axis"] == nil || [[self valueForKey:@"axis"] isEqualToString:@"y"])
{
layoutProperties->top = TiDimensionDip(newCenter.y - size.height / 2);

if (ensureBottom)
{
layoutProperties->bottom = TiDimensionDip(layoutProperties->top.value * -1);
Expand Down Expand Up @@ -320,7 +320,7 @@ - (void)correctMappedProxyPositions
{
[proxy view].center = proxyCenter;
}

LayoutConstraint* layoutProperties = [proxy layoutProperties];

if (constraintX)
Expand All @@ -332,7 +332,7 @@ - (void)correctMappedProxyPositions
{
layoutProperties->top = TiDimensionDip([proxy view].frame.origin.y);
}

[proxy refreshView:nil];
}];
}
Expand Down

0 comments on commit 5525b17

Please sign in to comment.