Components take multiple frames to resize

Hello, I’m working on a UI of a plugin and have an issue when the components are first drawn. I can see that the components are drawn to an incorrect size before being drawn again to the correct size all within a fraction of a second. This is not particularly crucial as it does resolve itself almost immediately.

I’m using svg files set as binary resources and creating drawables.

Has anyone else run into this issue or have any suggestions as to what may be causing this delay?

Put a breakpoint in your Component’s resize() method and check the call stack… and see if you have a setSize() somewhere… you must have a setSize() and setBounds() competing somewhere.