Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
54e80ff9
Commit
54e80ff9
authored
Mar 18, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2771 from Hixie/position-perf-overlay
Fix position of the overlay
parents
bf42da35
9d1b1df6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
performance_overlay.dart
packages/flutter/lib/src/rendering/performance_overlay.dart
+3
-3
app.dart
packages/flutter/lib/src/widgets/app.dart
+1
-1
No files found.
packages/flutter/lib/src/rendering/performance_overlay.dart
View file @
54e80ff9
...
...
@@ -83,14 +83,14 @@ class RenderPerformanceOverlay extends RenderBox {
}
double
get
intrinsicHeight
{
const
double
k
GraphHeight
=
80.0
;
// must match value in performance_overlay_layer.cc
const
double
k
DefaultGraphHeight
=
80.0
;
double
result
=
0.0
;
if
((
optionsMask
|
(
1
<<
PerformanceOverlayOption
.
displayRasterizerStatistics
.
index
)
>
0
)
||
(
optionsMask
|
(
1
<<
PerformanceOverlayOption
.
visualizeRasterizerStatistics
.
index
)
>
0
))
result
+=
kGraphHeight
;
result
+=
k
Default
GraphHeight
;
if
((
optionsMask
|
(
1
<<
PerformanceOverlayOption
.
displayEngineStatistics
.
index
)
>
0
)
||
(
optionsMask
|
(
1
<<
PerformanceOverlayOption
.
visualizeEngineStatistics
.
index
)
>
0
))
result
+=
kGraphHeight
;
result
+=
k
Default
GraphHeight
;
return
result
;
}
...
...
packages/flutter/lib/src/widgets/app.dart
View file @
54e80ff9
...
...
@@ -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
()),
]
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment