fix: properly handle cpu graph widget offset
This commit is contained in:
parent
0ff4238408
commit
5781a93c1f
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ impl canvas::Program<app::Message, Theme, Renderer> for CpuGraph {
|
|||
bounds: iced::Rectangle,
|
||||
_cursor: mouse::Cursor,
|
||||
) -> Vec<canvas::Geometry<Renderer>> {
|
||||
let geometry = self.cache.draw_with_bounds(renderer, bounds, |frame| {
|
||||
let geometry = self.cache.draw(renderer, bounds.size(), |frame| {
|
||||
frame.stroke(
|
||||
&canvas::Path::new(|builder| {
|
||||
for (index, value) in self.timeline.iter().enumerate() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue