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.
This commit is contained in:
Hixie 2016-03-17 17:26:34 -07:00
parent bf42da35b2
commit 9d1b1df6f3
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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()),
]
);
}