11-15-2018, 03:35 AM
Hello.
While integrating hotdoor 702 for 2019 AI I've found a strange behaviour that seems to only surface in 2019 AI.
It appears with resizable panels. I normally create panels, set up all the elements and add on resize callback that gets frame().size of the panel and sets all the elements according to size with setOrigin function.
If a panel is resized to a different size and AI is closed, when it is reopened the panel keeps its size and elements are placed as they should with resize callback.
However in AI2019 when AI is started all the elements are placed as if the panel has its minimal size regardless of the size it really has and it has to be resized for the elements to be set correctly.
By the way, is it possible to force a resizable panel to always appear with its minimal size when AI is opened?
While integrating hotdoor 702 for 2019 AI I've found a strange behaviour that seems to only surface in 2019 AI.
It appears with resizable panels. I normally create panels, set up all the elements and add on resize callback that gets frame().size of the panel and sets all the elements according to size with setOrigin function.
If a panel is resized to a different size and AI is closed, when it is reopened the panel keeps its size and elements are placed as they should with resize callback.
However in AI2019 when AI is started all the elements are placed as if the panel has its minimal size regardless of the size it really has and it has to be resized for the elements to be set correctly.
By the way, is it possible to force a resizable panel to always appear with its minimal size when AI is opened?