Commit e9d2db1a authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Instantiate the toolbar out of fullscreen

This CL sets the fullscreen progress of the toolbar to 1 (meaning
fullscreen isn't enabled) when the toolbar view is created.
It allows the constraints to be correctly positioned the first time
the toolbar is shown.

Bug: 895870
Change-Id: I481342521cd1b396f4d00c9f6dcc2a8a3f4cb1eb
Reviewed-on: https://chromium-review.googlesource.com/c/1297975
Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org>
Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602435}
parent e2fa251d
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
- (void)loadView { - (void)loadView {
DCHECK(self.buttonFactory); DCHECK(self.buttonFactory);
self.previousFullscreenProgress = 1;
self.view = self.view =
[[PrimaryToolbarView alloc] initWithButtonFactory:self.buttonFactory]; [[PrimaryToolbarView alloc] initWithButtonFactory:self.buttonFactory];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment