scroll to selected item when using type-to-select

This commit is contained in:
wowitsjack 2026-01-03 17:10:58 +10:00
parent 03ec21bdc9
commit 26634889dc
3 changed files with 14 additions and 1 deletions

View file

@ -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()?;