Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2591683002: Initialize the BrowserContainerView with the right frame. (Closed)
Patch Set: Addressed comment. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 135e953c65a3096cfee809ba4713573ed22903de..11c998d7f6c2cc6ab4cc66d2d3d0da828a989c97 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -1169,8 +1169,9 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
// Perform additional set up after loading the view, typically from a nib.
- (void)viewDidLoad {
- // Duplicate .xib layout for now.
- CGRect initialViewsRect = CGRectMake(0, 30, 320, 430);
+ CGRect initialViewsRect = self.view.frame;
+ initialViewsRect.origin.y += StatusBarHeight();
+ initialViewsRect.size.height -= StatusBarHeight();
UIViewAutoresizing initialViewAutoresizing =
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
@@ -1183,7 +1184,6 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
[self.typingShield addTarget:self
action:@selector(shieldWasTapped:)
forControlEvents:UIControlEventTouchUpInside];
- self.view.bounds = CGRectMake(0, 0, 320, 460);
self.view.autoresizingMask = initialViewAutoresizing;
self.view.backgroundColor = [UIColor colorWithWhite:0.75 alpha:1.0];
[self.view addSubview:self.contentArea];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698