Fix wrapped lines not being considered when measuring TextEditor
This commit is contained in:
parent
8b492a9b44
commit
2ba73b0faf
5 changed files with 38 additions and 22 deletions
|
|
@ -470,6 +470,12 @@ impl editor::Editor for Editor {
|
|||
self.internal().bounds
|
||||
}
|
||||
|
||||
fn min_bounds(&self) -> Size {
|
||||
let internal = self.internal();
|
||||
|
||||
text::measure(internal.editor.buffer())
|
||||
}
|
||||
|
||||
fn update(
|
||||
&mut self,
|
||||
new_bounds: Size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue