Translated hitboxes with nonnative titlebar (bug?)

I noticed the hitboxes for all my UI elements were a bit off, when maximizing the window.

I was able to reproduce this error with a new GUI application Project, only changing main.cpp (l. 67) to setUsingNativeTitleBar(false) and adding a TextButton using addAndMakeVisible(button) in MainComponent::MainComponent() and button.setBounds(200, 100, 200, 100) in MainComponent::resized().

Now when maximising the window, the area to actually click on the Button is a bit more to the right and to the bottom than I would expect.

I am on JUCE v8.0.6 and Window 10.

Looks like a bug from JUCE for me, but if im just doing something wrong, feel free to correct me^^

Have you tried the develop branch? A similar bug was fixed recently:

I didn’t before, but looks like this was exacly my problem. Using the develop branch fixed it.
Thanks^^

1 Like