04-28-2023, 07:20 AM
I don't know if this is a bug, or if I'm doing something wrong. In macOS, everything works great.
The problem occurs when a user resizes the panel, quits Illustrator, then re-launches. Illustrator remembers the panel size, but the TextView reappears at its original size (as defined in postStartup), and only resizes the TextView when the panel is manually resized again.
I've tried calling the panel's resize callback after defining the panel in postStartup, using dispatcher()->scheduleCallback, in the menu update callback, and in the callback for showing the panel, but they all fail. The TextView does resize when manually resizing the panel. When re-launching in macOS, the panel appears with the TextView at the size it was last time.
It happens in at least AI 2022 and 2023, Windows only.
The problem occurs when a user resizes the panel, quits Illustrator, then re-launches. Illustrator remembers the panel size, but the TextView reappears at its original size (as defined in postStartup), and only resizes the TextView when the panel is manually resized again.
I've tried calling the panel's resize callback after defining the panel in postStartup, using dispatcher()->scheduleCallback, in the menu update callback, and in the callback for showing the panel, but they all fail. The TextView does resize when manually resizing the panel. When re-launching in macOS, the panel appears with the TextView at the size it was last time.
It happens in at least AI 2022 and 2023, Windows only.