Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Layers: When an Auto FlexPanel has an Asset Element + FlexPanel, it ignores the Asset Element for size calculation #9559

Open
2 tasks done
gurpreetsinghmatharoo opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
ide-bug Bugs with the GameMaker IDE
Milestone

Comments

@gurpreetsinghmatharoo
Copy link

Description

Project: UIL_Tutorial_Ahead_Pause.zip

In this, ResumeButton (auto FP) has an FP with text + obj_button:
Image

The issue is about ResumeButton being an auto FP, calculating its size properly and then being aligned centre in its parent.

When the text FP is not there, its size is calculated correctly based on the button size, and it is centred:
Image

With the text FP, it only takes into account the FP, and ignores the button. This is how it appears:
Image

You can see the text is perfectly centred and it's ignoring the button to calculate the size of the ResumeButton panel. This is clearer if you disable the button and see just the text:
Image

Expected Change

The size of a panel should be calculated correctly from all the asset elements and panels it has inside it

Steps To Reproduce

  1. Start GameMaker
  2. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.1300 (Betas)

Which operating system(s) are you seeing the problem on?

No response

Are you running GameMaker from inside your Steam library?

None

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@gurpreetsinghmatharoo gurpreetsinghmatharoo added the ide-bug Bugs with the GameMaker IDE label Feb 26, 2025
@stuckie stuckie moved this from Triage to Todo in Team Workload Feb 26, 2025
@stuckie stuckie added this to the 2024.13 milestone Feb 26, 2025
@yyalansavage yyalansavage moved this from Todo to In Progress in Team Workload Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE
Projects
Status: In Progress
Development

No branches or pull requests

3 participants