Automatically fit standalone app / plugin within desktop screen?
-
I created a simple script that checks the user's desktop size, calculates the aspect ratio, and then automatically resizes the app's GUI if it is bigger than the user's desktop. It checks both height and width against the aspect ratio to determine which to use for sizing.
That all works great for adjusting the size of the GUI. HOWEVER, the resulting GUI of the standalone app is not centered within the screen, so the top window header that allows for moving the app around is outside of reach. That renders this function useless. The user now can't even reach the plugin's settings to readjust the zoom ratio.
My desktop has a scale of 1.5, so when I set it to 100% I can see that the GUI was aligned to the top left corner of my "unscaled" desktop. If I try the same on the unscaled desktop, then the resulting GUI is once again outside of the desktop. Changing scale of my desktop gets the GUI in view, but that is not a good or intuitive UX.
Are there any ways or ideas on how to ensure a plugin or standalone app always automatically fits within users's desktop size upon launch?
-
@gorangrooves I reckon I went down this road a while ago and discovered all the necessary functions for window management are inside Juce so there should be a non too complex way to create an API in Hise
-
@ustk Thanks. So, this would be something for @Christoph-Hart to implement at some point if he deems it worthwhile? :beaming_face_with_smiling_eyes: