Skip to content

Commit 1967e48

Browse files
committed
Rerender views if necessary when scrolling horizontally
If the context says it wants to rerender when its width changes, we must also rerender when the horizontal scroll position changes.
1 parent 679770c commit 1967e48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: pkg/gui/controllers/list_controller.go

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ func (self *ListController) scrollHorizontal(scrollFunc func()) error {
7474
scrollFunc()
7575

7676
self.context.HandleFocus(types.OnFocusOpts{})
77+
if self.context.NeedsRerenderOnWidthChange() == types.NEEDS_RERENDER_ON_WIDTH_CHANGE_WHEN_WIDTH_CHANGES {
78+
self.context.HandleRender()
79+
}
7780
return nil
7881
}
7982

0 commit comments

Comments
 (0)