Fix word wrapping inside VJoins
This commit is contained in:
parent
2d1c953250
commit
5c9c6e9d98
2 changed files with 2 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ impl Widget for Editor {
|
||||||
|
|
||||||
let min_width = lines
|
let min_width = lines
|
||||||
.iter()
|
.iter()
|
||||||
.map(|l| frame.width(l.text()))
|
.map(|l| frame.width(l.text().trim_end()))
|
||||||
.max()
|
.max()
|
||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
+ 1;
|
+ 1;
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ impl Widget for Text {
|
||||||
let lines = self.wrapped(frame, max_width);
|
let lines = self.wrapped(frame, max_width);
|
||||||
let min_width = lines
|
let min_width = lines
|
||||||
.iter()
|
.iter()
|
||||||
.map(|l| frame.width(l.text()))
|
.map(|l| frame.width(l.text().trim_end()))
|
||||||
.max()
|
.max()
|
||||||
.unwrap_or(0);
|
.unwrap_or(0);
|
||||||
let min_height = lines.len();
|
let min_height = lines.len();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue