Hot Door CORE Forum
Panel resizing issue. - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: Panel resizing issue. (/showthread.php?tid=191)



Panel resizing issue. - Gaxx - 11-15-2018

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?


RE: Panel resizing issue. - garrett - 11-19-2018

Unfortunately, I believe this is an issue in Illustrator itself. Can you fire a delayed callback, sometime after post-startup and/or after the first notifier of type DocumentOpenedNotifierType, to manually check the panel size to work around the issue for your specific use case?

(11-15-2018, 03:35 AM)Gaxx Wrote: By the way, is it possible to force a resizable panel to always appear with its minimal size when AI is opened?

No, not that I am aware of. Sadly, the vast majority of panel features available to a user at runtime are handled by Illustrator's workspace implementation, which is not accessible by the SDK.