Skip to content

Commit 1ddc250

Browse files
bellwether-softworksmichalsustr
authored andcommitted
Positioning demo label to avoid existing "so graph" label, updating anchor to better demonstrate how it affects positioning
1 parent a969f5a commit 1ddc250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/src/plot_demo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,9 @@ impl ItemsDemo {
858858
plot_ui.text(Text::new("Text", PlotPoint::new(-3.0, -3.0), "wow").id("text0"));
859859
plot_ui.text(Text::new("Text", PlotPoint::new(-2.0, 2.5), "so graph").id("text1"));
860860
plot_ui.text(
861-
Text::new("Text", PlotPoint::new(-2.0, 2.5), "Very angle")
861+
Text::new("Text", PlotPoint::new(-1.5, 2.0), "Very angle")
862862
.angle(-std::f32::consts::FRAC_PI_4)
863-
.anchor(Align2::CENTER_TOP)
863+
.anchor(Align2::LEFT_TOP)
864864
.name("Angled text")
865865
.id("text_angled"),
866866
);

0 commit comments

Comments
 (0)