Remove wrap method from Frame
This commit is contained in:
parent
f48901f543
commit
06aefd562b
2 changed files with 2 additions and 6 deletions
|
|
@ -30,7 +30,8 @@ fn draw(f: &mut Frame) {
|
|||
"123456789\tx\n",
|
||||
);
|
||||
|
||||
let breaks = f.wrap(text, f.size().width.into());
|
||||
let width = f.size().width.into();
|
||||
let breaks = f.widthdb().wrap(text, width);
|
||||
let lines = Styled::new_plain(text).split_at_indices(&breaks);
|
||||
for (i, mut line) in lines.into_iter().enumerate() {
|
||||
line.trim_end();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue