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

Issue 1223153004: Make the drawer, popup menus, dialogs, and settings page scrollable. (Closed)

Created:
5 years, 5 months ago by Hixie
Modified:
5 years, 5 months ago
Reviewers:
abarth-chromium
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

Make the drawer, popup menus, dialogs, and settings page scrollable. Also, fixes the stocks list to work properly including hit testing at the bottom of the screen. New classes: RenderViewport: a class that supports positioning a child inside itself and offsetting it. Viewport: a RenderObjectWrapper that wraps RenderViewport. ScrollableViewport: a Component that hooks Viewport up to some scrolling behaviour. Code changes: RenderBlock now only works when it has an unbounded height constraint. I removed the clipping in there since it's no longer needed. I made FixedHeightScrollable use Viewport instead of hand-rolling its clipping with Transform and Clip. This is what fixes the stocks list hit testing at the bottom of the screen. I made anywhere that used to use Block now use ScrollableViewport. RenderFlex now takes a list of children. Justifications for test changes: tests/examples/stocks: changing FixedHeightScrollable to use a RenderViewport instead of a RenderClipRect/RenderTransform combination removes the use of an actual transform. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/1e65019c0064730142295e8f2d190b5e5ac2fb6c

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -99 lines) Patch
M sky/engine/core/painting/OffsetBase.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
M sky/sdk/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sky/sdk/example/stocks/lib/stock_settings.dart View 1 2 2 chunks +25 lines, -22 lines 0 comments Download
M sky/sdk/lib/rendering/block.dart View 2 chunks +2 lines, -15 lines 0 comments Download
M sky/sdk/lib/rendering/box.dart View 1 2 1 chunk +126 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/flex.dart View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M sky/sdk/lib/widgets/basic.dart View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M sky/sdk/lib/widgets/dialog.dart View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M sky/sdk/lib/widgets/drawer.dart View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M sky/sdk/lib/widgets/fixed_height_scrollable.dart View 1 2 4 chunks +11 lines, -14 lines 0 comments Download
M sky/sdk/lib/widgets/popup_menu.dart View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
A sky/sdk/lib/widgets/scrollable_viewport.dart View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
M sky/tests/examples/stocks-expected.txt View 1 2 2 chunks +4 lines, -16 lines 0 comments Download
M sky/tests/widgets/dialog-expected.txt View 1 2 1 chunk +29 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
abarth-chromium
lgtm https://codereview.chromium.org/1223153004/diff/1/sky/sdk/example/stocks/lib/stock_settings.dart File sky/sdk/example/stocks/lib/stock_settings.dart (right): https://codereview.chromium.org/1223153004/diff/1/sky/sdk/example/stocks/lib/stock_settings.dart#newcode96 sky/sdk/example/stocks/lib/stock_settings.dart:96: child: new Block([ We should combine these into ...
5 years, 5 months ago (2015-07-09 23:39:35 UTC) #2
abarth-chromium
lgtm
5 years, 5 months ago (2015-07-10 23:52:53 UTC) #3
Hixie
5 years, 5 months ago (2015-07-10 23:54:23 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
1e65019c0064730142295e8f2d190b5e5ac2fb6c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698