iris: add positioned text overflow
This commit is contained in:
1 parent
1f15125992
commit
a475ae772f
14 files changed
+735
-31
No files matched your search
@@ -22,7 +22,7 @@ typical phone column width.";
|
||||
|
||||
fn build_row(rsc: &mut BenchRsc, i: usize, image_every: usize) -> StrongWidget {
|
||||
let text = wtext(format!("Message {i}: {BODY}"))
|
||||
.wrap(true)
|
||||
.overflow(TextOverflow::Wrap)
|
||||
.add_strong(rsc)
|
||||
.any();
|
||||
|
||||
@@ -322,7 +322,9 @@ fn bench_redraw_big_text(chars: usize, redraws: usize) {
|
||||
let content: String = (0..chars)
|
||||
.map(|i| char::from(b'a' + (i % 26) as u8))
|
||||
.collect();
|
||||
let text = wtext(content).wrap(true).add_strong(&mut rsc);
|
||||
let text = wtext(content)
|
||||
.overflow(TextOverflow::Wrap)
|
||||
.add_strong(&mut rsc);
|
||||
let handle = text.weak();
|
||||
let root = text.any();
|
||||
|
||||
|
||||
Reference in new issue
Block a user