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

Unified Diff: sky/sdk/lib/rendering/paragraph.dart

Issue 1219113003: Make popup menus line up to their baseline per the Material spec. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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: sky/sdk/lib/rendering/paragraph.dart
diff --git a/sky/sdk/lib/rendering/paragraph.dart b/sky/sdk/lib/rendering/paragraph.dart
index dcce468cb7b783e98bd4f8d105f4855f3581bd77..75cdcdba32d62bb5517bbcdafaa79b3e7600da31 100644
--- a/sky/sdk/lib/rendering/paragraph.dart
+++ b/sky/sdk/lib/rendering/paragraph.dart
@@ -154,7 +154,7 @@ class RenderParagraph extends RenderBox {
return _getIntrinsicHeight(constraints);
}
- double getDistanceToActualBaseline(TextBaseline baseline) {
+ double computeDistanceToActualBaseline(TextBaseline baseline, RenderObject client) {
assert(!needsLayout);
_layout(constraints);
sky.Element root = _layoutRoot.rootElement;

Powered by Google App Engine
This is Rietveld 408576698