╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2416 // the tool row's first child after the spacer that pushes it right │ │2417 const first_in_row_index: usize = 1; │ │2418 │ │2428 - fn toolRowFocused(self: *This, index: usize) bool { │ │2429 - const outer = self.detailOuter(index); │ │2430 - const cid = outer.getFocus().child_id orelse return false; │ │2431 - return outer.children.getIndex(cid) == tool_row_index; │ │2419 + fn toolRowFocused(self: *This, index: usize, root_focus: *Focus) bool { │ │2420 + return self.focusedDetailChild(index, root_focus) == tool_row_index; │ │2421 } │ │2422 │ │2423 fn focusTag(self: *This, index: usize, child_index: usize, tf: *TagFlow, root_focus: *Focus, item: usize) void {│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2439 fn focusToolRow(self: *This, index: usize, root_focus: *Focus) void { │ │2440 const cid = self.toolRow(index).getFocus().child_id orelse return self.focusHeader(root_focus);│ │2441 root_focus.setFocus(cid); │ │2442 + if (self.detailInner(index).children.values()[tool_row_index].rect) |rect| │ │2443 + self.detailScroll(index).scrollToRect(rect); │ │2444 } │ │2445 │ │2446 // enter the detail pane. an empty pane can't be entered. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯