SetSize(x,y) Issue

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

Juce 8.0.4 / Xcode 16 / Sequoia