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

Unified Diff: ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm

Issue 2693043002: [ios clean] Add overflow buttons for ToolsMenu. (Closed)
Patch Set: CL Feedback Created 3 years, 10 months 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
Index: ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
diff --git a/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm b/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
index 0e4487db404e9bcf03ca9d64b7e7da54be1313b2..9c42bd29c1f6975cccc96fe6c1e8e08cdc28ecab 100644
--- a/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
+++ b/ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm
@@ -84,6 +84,12 @@ CGFloat kVerticalMargin = 5.0f;
]];
}
+- (void)viewWillLayoutSubviews {
+ // This forces the ToolMenu to close whenever a Device Rotation, iPad
+ // Multitasking change, etc. happens.
+ [self.toolbarCommandHandler closeToolsMenu];
+}
+
#pragma mark - Components Setup
- (void)setUpToolbarButtons {

Powered by Google App Engine
This is Rietveld 408576698