Commit 9d1b1df6 authored by Hixie's avatar Hixie

Fix position of the overlay

Now that the overlay actually respects the position we give it, put it
somewhere where the keyboard won't overlap it.
parent bf42da35
......@@ -83,14 +83,14 @@ class RenderPerformanceOverlay extends RenderBox {
}
double get intrinsicHeight {
const double kGraphHeight = 80.0; // must match value in performance_overlay_layer.cc
const double kDefaultGraphHeight = 80.0;
double result = 0.0;
if ((optionsMask | (1 << PerformanceOverlayOption.displayRasterizerStatistics.index) > 0) ||
(optionsMask | (1 << PerformanceOverlayOption.visualizeRasterizerStatistics.index) > 0))
result += kGraphHeight;
result += kDefaultGraphHeight;
if ((optionsMask | (1 << PerformanceOverlayOption.displayEngineStatistics.index) > 0) ||
(optionsMask | (1 << PerformanceOverlayOption.visualizeEngineStatistics.index) > 0))
result += kGraphHeight;
result += kDefaultGraphHeight;
return result;
}
......
......@@ -202,7 +202,7 @@ class WidgetsAppState<T extends WidgetsApp> extends State<T> implements BindingO
result = new Stack(
children: <Widget>[
result,
new Positioned(bottom: 0.0, left: 0.0, right: 0.0, child: new PerformanceOverlay.allEnabled()),
new Positioned(top: 0.0, left: 0.0, right: 0.0, child: new PerformanceOverlay.allEnabled()),
]
);
}
......
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