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

[Bug]: SetSize not calling resized() Of nested components #1483

Open
1 task done
francescopellegrni opened this issue Nov 27, 2024 · 0 comments
Open
1 task done

[Bug]: SetSize not calling resized() Of nested components #1483

francescopellegrni opened this issue Nov 27, 2024 · 0 comments

Comments

@francescopellegrni
Copy link

Detailed steps on how to reproduce the bug

Hello Everyone! I had the following problem:

A button with set Default Resolution, and then a function called by the button within the pluginEditor with setSize(x,y).

The resized() function of the nested component is called before the editor get actually resized, infact the function getTopLevelComponent()->getHeight() returns the “old” resolution (the numbers in pixels before the editor get resized to y instead of returning y). Forcing the resize manually after setSize solves the issue. But in JUCE 7 this line was not needed.

Am I doing something wrong?

Thanks

What is the expected behaviour?

resized() of nested component called after the editor get actually the new width and height

Operating systems

macOS

What versions of the operating systems?

Juce 8.0.4 / Xcode 16 / Sequoia

Architectures

x86_64, Arm64/aarch64

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct
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

No branches or pull requests

1 participant