Skip to content

Commit

Permalink
Add repro case for #104 to examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Jan 25, 2025
1 parent 68fc2dd commit 574a0ef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions crates/yakui/examples/test_issue_104.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use yakui::{constrained, row, text, Constraints, Vec2};

// Demonstrates bug https://github.com/SecondHalfGames/yakui/issues/104
pub fn run() {
constrained(Constraints::tight(Vec2::splat(100.0)), || {
row(|| {
text(
32.0,
"Lorem ipsum dolor sit amet blah blah blah I just want some long text here",
);
});
});
}

fn main() {
bootstrap::start(run as fn());
}

0 comments on commit 574a0ef

Please sign in to comment.