Answered
Illustrator ExtendScript dropdownlist buggy display
When using the Extendscript code below to display a dialog in Illustrator, the dropdownlist display is buggy the first time entering the window, either showing things in duplicate or making a larger size.
Troubleshooting:
- Widened the popup and dialog widths and heights and still had the issue
- Tried Illustrator 2024 and 2025 - both problematic
- The same code doesn't present any issues when run within Photoshop
Testing Environment:
- 2023 MacBookPro M3 Max
- macOS Sequoia 15.5
- Adobe Illustrator 2025 (29.5.1) and 2024
var dialog = new Window("dialog", "Choose");
//dialog.preferredSize.width = 300;
var popup = dialog.add("dropdownlist", undefined, ["First Selection", "Second Selection", "Third Selection"]);
popup.selection = 0;
//popup.preferredSize.width = 200;
dialog.add("button", undefined, "OK", { name: "ok" });
dialog.show();