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

Issue 1171173003: Right-size the toolbar (Closed)

Created:
5 years, 6 months ago by hansmuller1
Modified:
5 years, 6 months ago
CC:
abarth-chromium, gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Right-size the toolbar Tweaked the layout in Scaffold a little: the Scaffold accounts for the (Android) notification bar's height, instead of the ToolBar. I think it would be best if moving the app below the notification area were handled at a lower level. Doing it in Scaffold seemed OK for the moment, since one could put a ToolBar component anywhere in an app. Closes #208 R=ianh@google.com Committed: https://chromium.googlesource.com/external/mojo/+/cb071d344ecb2b76a580628b347066b42efdd3b6

Patch Set 1 #

Patch Set 2 : Toolbar contents bottom-justfied, stretch past notification area #

Total comments: 11

Patch Set 3 : Added a TODO for align-items:flex-end #

Patch Set 4 : Updated per review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M sky/sdk/lib/framework/components2/scaffold.dart View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M sky/sdk/lib/framework/components2/tool_bar.dart View 1 2 3 2 chunks +12 lines, -7 lines 0 comments Download
M sky/sdk/lib/framework/theme2/view_configuration.dart View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
hansmuller
PTAL
5 years, 6 months ago (2015-06-10 16:27:27 UTC) #3
Hixie
If the toolbar doesn't have responsibility for getting past the notification area, then how does ...
5 years, 6 months ago (2015-06-10 16:50:02 UTC) #4
hansmuller
The toolbar's contents are now bottom justified within a kToolBarHeight child. Scaffold expands the toolbar ...
5 years, 6 months ago (2015-06-10 17:45:07 UTC) #5
abarth-chromium
https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/tool_bar.dart File sky/sdk/lib/framework/components2/tool_bar.dart (right): https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/tool_bar.dart#newcode38 sky/sdk/lib/framework/components2/tool_bar.dart:38: var bottomJustifiedChild = new FlexContainer( Can you add a ...
5 years, 6 months ago (2015-06-10 17:50:40 UTC) #6
hansmuller
https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/tool_bar.dart File sky/sdk/lib/framework/components2/tool_bar.dart (right): https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/tool_bar.dart#newcode38 sky/sdk/lib/framework/components2/tool_bar.dart:38: var bottomJustifiedChild = new FlexContainer( On 2015/06/10 17:50:40, abarth ...
5 years, 6 months ago (2015-06-10 17:56:10 UTC) #7
abarth-chromium
lgtm
5 years, 6 months ago (2015-06-10 17:56:58 UTC) #9
Hixie
lgtm https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/scaffold.dart File sky/sdk/lib/framework/components2/scaffold.dart (right): https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/scaffold.dart#newcode90 sky/sdk/lib/framework/components2/scaffold.dart:90: var toolbarHeight = kToolBarHeight + kNotificationAreaHeight; double, not ...
5 years, 6 months ago (2015-06-10 17:57:13 UTC) #11
hansmuller
https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/scaffold.dart File sky/sdk/lib/framework/components2/scaffold.dart (right): https://codereview.chromium.org/1171173003/diff/20001/sky/sdk/lib/framework/components2/scaffold.dart#newcode90 sky/sdk/lib/framework/components2/scaffold.dart:90: var toolbarHeight = kToolBarHeight + kNotificationAreaHeight; On 2015/06/10 17:57:13, ...
5 years, 6 months ago (2015-06-10 18:06:24 UTC) #12
hansmuller1
5 years, 6 months ago (2015-06-10 18:06:59 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
cb071d344ecb2b76a580628b347066b42efdd3b6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698