scroll to selected item when using type-to-select
This commit is contained in:
parent
03ec21bdc9
commit
26634889dc
3 changed files with 14 additions and 1 deletions
|
|
@ -2942,7 +2942,7 @@ impl Tab {
|
|||
item.pos_opt.get()
|
||||
}
|
||||
|
||||
fn select_focus_scroll(&mut self) -> Option<AbsoluteOffset> {
|
||||
pub(crate) fn select_focus_scroll(&mut self) -> Option<AbsoluteOffset> {
|
||||
let items = self.items_opt.as_ref()?;
|
||||
let item = items.get(self.select_focus?)?;
|
||||
let rect = item.rect_opt.get()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue