Skip to content

Commit

Permalink
Fixed a bug that led to the webview being longer than the display siz…
Browse files Browse the repository at this point in the history
…e of the screen.


The bug was that the view was set to an initial height of 416. Since this size is smaller then the _navbar + _webView heights (460), the webview is not all visible. Fixed this to set it to 460.
  • Loading branch information
nomothetis committed Jul 15, 2011
1 parent e3fd3f7 commit e537e3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ - (void) loadView {

_navBar = [[[UINavigationBar alloc] initWithFrame: CGRectMake(0, 0, 480, 32)] autorelease];
} else {
self.view = [[[UIView alloc] initWithFrame: CGRectMake(0, 0, 320, 416)] autorelease];
self.view = [[[UIView alloc] initWithFrame: CGRectMake(0, 0, 320, 460)] autorelease];
_backgroundView.frame = CGRectMake(0, 44, 320, 416);
_navBar = [[[UINavigationBar alloc] initWithFrame: CGRectMake(0, 0, 320, 44)] autorelease];
}
Expand Down

0 comments on commit e537e3c

Please sign in to comment.