diff --git a/examples/stress_tests/many_buttons.rs b/examples/stress_tests/many_buttons.rs index 250ea79977..2e5d7f72d3 100644 --- a/examples/stress_tests/many_buttons.rs +++ b/examples/stress_tests/many_buttons.rs @@ -289,14 +289,24 @@ fn spawn_button( if spawn_text { builder.with_children(|parent| { - parent.spawn(( - Text(format!("{column}, {row}")), - TextFont { - font_size: FONT_SIZE, - ..default() - }, - TextColor(Color::srgb(0.2, 0.2, 0.2)), - )); + // These labels are split to stress test multi-span text + parent + .spawn(( + Text(format!("{column}, ")), + TextFont { + font_size: FONT_SIZE, + ..default() + }, + TextColor(Color::srgb(0.5, 0.2, 0.2)), + )) + .with_child(( + TextSpan(format!("{row}")), + TextFont { + font_size: FONT_SIZE, + ..default() + }, + TextColor(Color::srgb(0.2, 0.2, 0.5)), + )); }); } }