An easier way to do this is for your components to declare their sizes / positions relative to their external containers. For example, instead of setting x, y, width and height, set left, right, top and bottom in the Application component, as well as in the containers of your application. If you want to provide a minimum size of 800x600, you can set the minWidth and minHeight properties. Hope this helps.
source
share