Skip to content

Commit fa9d758

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 9e3e1a7 commit fa9d758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/gui/controllers/list_controller.go

Lines changed: 3 additions & 0 deletions
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)