Skip to content

Commit

Permalink
bug: [skip travis] Fix use_old_network_legend
Browse files Browse the repository at this point in the history
This was caused by invalid widths being set for the maximal widths in
the table.  This made it impossible to draw.
  • Loading branch information
ClementTsang committed Nov 21, 2020
1 parent 99d0402 commit e04ce4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/canvas/widgets/network_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,10 @@ impl NetworkGraphWidget for Painter {
let intrinsic_widths = get_column_widths(
draw_loc.width,
&[None, None, None, None],
&[Some(6); 4],
&(NETWORK_HEADERS_LENS
.iter()
.map(|s| Some(*s))
.collect::<Vec<_>>()),
&[Some(0.25); 4],
&(NETWORK_HEADERS_LENS
.iter()
Expand Down

0 comments on commit e04ce4f

Please sign in to comment.