diff options
Diffstat (limited to 'src/canvas')
-rw-r--r-- | src/canvas/widgets/cpu_graph.rs | 2 | ||||
-rw-r--r-- | src/canvas/widgets/mem_graph.rs | 2 | ||||
-rw-r--r-- | src/canvas/widgets/network_graph.rs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/canvas/widgets/cpu_graph.rs b/src/canvas/widgets/cpu_graph.rs index 73b8a9c0..e03e7d19 100644 --- a/src/canvas/widgets/cpu_graph.rs +++ b/src/canvas/widgets/cpu_graph.rs @@ -123,6 +123,8 @@ impl CpuGraphWidget for Painter { cpu_widget_state.autohide_timer = None; Axis::default().bounds([-(cpu_widget_state.current_display_time as f64), 0.0]) } + } else if draw_loc.height < 7 { + Axis::default().bounds([-(cpu_widget_state.current_display_time as f64), 0.0]) } else { Axis::default() .bounds([-(cpu_widget_state.current_display_time as f64), 0.0]) diff --git a/src/canvas/widgets/mem_graph.rs b/src/canvas/widgets/mem_graph.rs index 7224484f..96cd3030 100644 --- a/src/canvas/widgets/mem_graph.rs +++ b/src/canvas/widgets/mem_graph.rs @@ -44,6 +44,8 @@ impl MemGraphWidget for Painter { mem_widget_state.autohide_timer = None; Axis::default().bounds([-(mem_widget_state.current_display_time as f64), 0.0]) } + } else if draw_loc.height < 7 { + Axis::default().bounds([-(mem_widget_state.current_display_time as f64), 0.0]) } else { Axis::default() .bounds([-(mem_widget_state.current_display_time as f64), 0.0]) diff --git a/src/canvas/widgets/network_graph.rs b/src/canvas/widgets/network_graph.rs index 2cc0307f..583451d9 100644 --- a/src/canvas/widgets/network_graph.rs +++ b/src/canvas/widgets/network_graph.rs @@ -94,6 +94,8 @@ impl NetworkGraphWidget for Painter { Axis::default() .bounds([-(network_widget_state.current_display_time as f64), 0.0]) } + } else if draw_loc.height < 7 { + Axis::default().bounds([-(network_widget_state.current_display_time as f64), 0.0]) } else { Axis::default() .bounds([-(network_widget_state.current_display_time as f64), 0.0]) |