WIP
This commit is contained in:
parent
9d23a98157
commit
7536645eea
26 changed files with 496 additions and 519 deletions
|
@ -90,8 +90,9 @@ impl InputHandler for WindowInputHandler {
|
|||
}
|
||||
|
||||
fn rect_for_range(&self, range_utf16: Range<usize>) -> Option<RectF> {
|
||||
let app = self.app.borrow();
|
||||
let window = app.windows.get(&self.window_id)?;
|
||||
window.presenter.rect_for_text_range(range_utf16, &app)
|
||||
self.app
|
||||
.borrow_mut()
|
||||
.update_window(self.window_id, |cx| cx.rect_for_text_range(range_utf16))
|
||||
.flatten()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue