Rotation Handling


#1

Is there a way to catch and handle the rotation of a device using JUCE? I’d just wish to repaint and change the size of some components of my app when the orientation changes.

Thank you


#2

resized() is called when a device rotates.


#3

That’s what I thought but when I put breakpoints on resized(), it doesn’t stop the program when I rotate the Ipad (yes, breakpoints are activated and it runs in Debug mode). To be sure, I wrote: Logger::outputDebugString(“resized called”); in the function and again, nothing is written when I rotate the device.


#4

Unless your screen is square, then your component will definitely be resized, and resized() is always called when things resize.

Maybe check for silly mistakes like checking the resized() of the wrong component?


#5

Well you were right, my bad!
Thanks again