Skip to content

Commit

Permalink
Fix clip rect for plot items (#3955)
Browse files Browse the repository at this point in the history
Closes <#3865>.
  • Loading branch information
YgorSouza authored Feb 5, 2024
1 parent 114f820 commit 1636b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui_plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ impl PreparedPlot {
let transform = &self.transform;

let mut plot_ui = ui.child_ui(*transform.frame(), Layout::default());
plot_ui.set_clip_rect(*transform.frame());
plot_ui.set_clip_rect(transform.frame().intersect(ui.clip_rect()));
for item in &self.items {
item.shapes(&plot_ui, transform, &mut shapes);
}
Expand Down

0 comments on commit 1636b6a

Please sign in to comment.