bug: [skip travis] Fix use_old_network_legend

This was caused by invalid widths being set for the maximal widths in
the table.  This made it impossible to draw.
This commit is contained in:
ClementTsang 2020-11-21 14:56:30 -05:00
parent 99d04029f0
commit e04ce4fa1b
1 changed files with 4 additions and 1 deletions

View File

@ -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()