Skip to content

Allow ScrollContainer's ensure_control_visible() method to accept a const Control parameter#180

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

Allow ScrollContainer's ensure_control_visible() method to accept a const Control parameter#180
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-scrollcontainer-ensure-control-visible

Conversation

@madmiraal
Copy link
Copy Markdown
Contributor

Currently, ScrollContainer's ensure_control_visible() method takes a Control as a parameter. Since the Control is not changed, it can accept a const Control. Accepting a const Control allows ensure_control_visible() to be called using a pointer to a Control that cannot be changed.

This PR updates ScrollContainer's ensure_control_visible() method to accept a const Control parameter.

@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 13:13
@DanielaOrtner DanielaOrtner merged commit 3a937ac into RebelToolbox:main Jul 17, 2025
15 checks passed
@madmiraal madmiraal deleted the fix-scrollcontainer-ensure-control-visible branch July 17, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Type: Enhancement Your current game will work better.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants