Skip to content

Defer Projects Manager's Projects List's call to ensure_control_visible()#181

Merged
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-projectslist-ensure-item-visible
Jul 17, 2025
Merged

Defer Projects Manager's Projects List's call to ensure_control_visible()#181
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-projectslist-ensure-item-visible

Conversation

@madmiraal
Copy link
Copy Markdown
Contributor

Currently, when renaming a project in Projects Manager, the position of the project in the list is updated, but, despite a call being made to ScrollContainer's ensure_control_visible() the view is not updated to ensure the item remains visible.

This PR defers the call to ScrollContainer's ensure_control_visible() to ensure that the changes to the control's new position are available before calculating how much to scroll the ScrollContainer.

@madmiraal madmiraal added the PR Type: Enhancement Your current game will work better. label Jul 17, 2025
@DanielaOrtner DanielaOrtner self-requested a review July 17, 2025 16:49
@DanielaOrtner DanielaOrtner merged commit 280bba0 into RebelToolbox:main Jul 17, 2025
15 checks passed
@madmiraal madmiraal deleted the fix-projectslist-ensure-item-visible branch July 18, 2025 07:15
@madmiraal madmiraal added PR Type: Bug Fix Your current game should now work as expected. and removed PR Type: Enhancement Your current game will work better. labels Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Type: Bug Fix Your current game should now work as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants