Skip to content

Conversation

ryanbennitt
Copy link
Contributor

Added columns to gui/manipulator for time since arrival and goal (dreams of...).

@@ -1060,7 +1066,7 @@ function Spreadsheet:render(dc)
local selected = self.namelist:getSelected()
for _, col in ipairs(self.cols.subviews) do
col.subviews.col_list.page_top = page_top
col.subviews.col_list:setSelected(selected)
col.subviews.col_list.selected = selected
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling setSelected resets a bunch of values that we do not want changed because it calls List:moveCursor internally. Just changing the selected value keeps the whole sheet in sync and everything renders correctly using mouse or keyboard navigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant