Skip to content

Commit 386ec2c

Browse files
committed
set the UI box big enough to contain the label
1 parent c324b90 commit 386ec2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/3d/blend_modes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ fn setup(
236236
TextBundle::from_section(label, label_text_style.clone()).with_style(Style {
237237
position_type: PositionType::Absolute,
238238
bottom: Val::Px(0.),
239+
size: Size::new(Val::Px(label.len() as f32 * 10.0), Val::Auto),
239240
..default()
240241
}),
241242
);

0 commit comments

Comments
 (0)