Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6aaa8c2

Browse files
sumitaroramgechev
authored andcommitted
fix(devtools): fixing the bar graph height issue
1 parent 51ca6c3 commit 6aaa8c2

File tree

1 file changed

+1
-1
lines changed
  • projects/ng-devtools/src/lib/devtools-tabs/profiler/recording/timeline/record-formatter/bargraph-formatter

1 file changed

+1
-1
lines changed

projects/ng-devtools/src/lib/devtools-tabs/profiler/recording/timeline/record-formatter/bargraph-formatter/bargraph-formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export class BarGraphFormatter extends RecordFormatter<BargraphNode[]> {
1919

2020
addFrame(nodes: BargraphNode[], elements: ElementProfile[], parents: ElementProfile[] = []): number {
2121
let timeSpent = 0;
22-
const suffix = addSpaces(nodes.length);
2322
elements.forEach((element) => {
2423
// Possibly undefined because of
2524
// the insertion on the backend.
@@ -32,6 +31,7 @@ export class BarGraphFormatter extends RecordFormatter<BargraphNode[]> {
3231
timeSpent += super.getValue(element);
3332

3433
element.directives.forEach((dir) => {
34+
const suffix = addSpaces(nodes.length);
3535
const innerNode: BargraphNode = {
3636
parents,
3737
value: super.getDirectiveValue(dir),

0 commit comments

Comments
 (0)