in pkg/display/graph/tree/tree.go [200:225]
func redraw(shouldShow map[interface{}]bool, tree *widgets.Tree, detail, help *widgets.Paragraph) {
x, y := ui.TerminalDimensions()
shouldDisplaySideBar := shouldShow[detail] || shouldShow[help]
if shouldDisplaySideBar {
tree.SetRect(0, 0, x*2/3, y)
} else {
tree.SetRect(0, 0, x, y)
}
if shouldShow[detail] && shouldShow[help] {
detail.SetRect(x*2/3, 0, x, y/2)
help.SetRect(x*2/3, y/2+1, x, y)
} else if shouldShow[help] {
detail.SetRect(0, 0, 0, 0)
help.SetRect(x*2/3, 0, x, y)
} else if shouldShow[detail] {
detail.SetRect(x*2/3, 0, x, y)
help.SetRect(0, 0, 0, 0)
} else {
help.SetRect(0, 0, 0, 0)
detail.SetRect(0, 0, 0, 0)
}
ui.Render(tree, detail, help)
}