Keybaord shortcut context menu

This commit is contained in:
Conrad Irwin
2023-11-29 23:04:33 -07:00
parent a37f86f294
commit 54cfcef0aa
2 changed files with 87 additions and 70 deletions
+4
View File
@@ -1492,6 +1492,10 @@ impl ScrollHandle {
}
}
pub fn bounds_for_item(&self, ix: usize) -> Option<Bounds<Pixels>> {
self.0.borrow().child_bounds.get(ix).cloned()
}
/// scroll_to_item scrolls the minimal amount to ensure that the item is
/// fully visible
pub fn scroll_to_item(&self, ix: usize) {