Skip to content

Commit

Permalink
use the new no wrap text feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jun 26, 2023
1 parent 60f9a5f commit 7038aa0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/3d/blend_modes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,13 @@ fn setup(
))
.with_children(|parent| {
parent.spawn(
TextBundle::from_section(label, label_text_style.clone()).with_style(Style {
position_type: PositionType::Absolute,
bottom: Val::Px(0.),
size: Size::new(Val::Px(label.len() as f32 * 10.0), Val::Auto),
..default()
}),
TextBundle::from_section(label, label_text_style.clone())
.with_style(Style {
position_type: PositionType::Absolute,
bottom: Val::Px(0.),
..default()
})
.with_no_wrap(),
);
});
};
Expand Down

0 comments on commit 7038aa0

Please sign in to comment.