In my app I have a simple button that resizes with the screen.
On the component constructor I have fixed sized with
On the component resized function I call the following so it sits right on the bottom right corner.
button.setCentrePosition(getBounds().getWidth() - button.getWidth()/2 - offset, getBounds().getHeight() - button.getHeight()/2 - offset);
The problem is: when I press full-screen and while the window is resizing the button goes veeery big for a very short period of time and then resizes to the correct position. I’m assuming this is because setting to full-screen resizes first on one direction and then the other.
Has anyone else found this? any solution?