Skip to content

Commit

Permalink
When view is nil, view.bounds is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Blain Hamon committed Apr 2, 2011
1 parent 9c55395 commit f6fc2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/TiViewProxy.m
Expand Up @@ -554,7 +554,7 @@ -(TiUIView*)view
[self viewDidAttach];

// make sure we do a layout of ourselves
if(CGRectIsEmpty(sandboxBounds)){
if(CGRectIsEmpty(sandboxBounds) && (view != nil)){
[self setSandboxBounds:view.bounds];
}
[self relayout];
Expand Down

0 comments on commit f6fc2bc

Please sign in to comment.