Skip to content

Commit

Permalink
Merge pull request #1845 from vishalduggal/timob-8247
Browse files Browse the repository at this point in the history
[TIMOB-8247] Constrain both width and height during layout
  • Loading branch information
Stephen Tramer committed Mar 27, 2012
2 parents e09f9ed + 97ec1bb commit 4eca4a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iphone/Classes/LayoutConstraint.m
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ CGSize SizeConstraintViewWithSizeAddingResizing(LayoutConstraint * constraint, N
//If it comes here it has to follow size behavior
if ([autoSizer respondsToSelector:@selector(autoHeightForSize:)])
{
height = [autoSizer autoHeightForSize:CGSizeMake(width, height)];
CGFloat desiredHeight = [autoSizer autoHeightForSize:CGSizeMake(width, height)];
height = height < desiredHeight?height:desiredHeight;
}
else if(resultResizing != NULL)
{
Expand Down

0 comments on commit 4eca4a3

Please sign in to comment.