Copy link to clipboard
Copied
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:
Testing Environment:
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();
I believe it was a font cache issue... clearing htem out appears to have resolved it.
Copy link to clipboard
Copied
Hi @Chris.S I tested your code on MacOS 15.5, AI 29.5.1 and it worked normally—no glitching. What platform and Illustrator version are you running? Also does it persist after restarting Illustrator?
- Mark
Copy link to clipboard
Copied
Tested on MacOS 15.5, AI 29.5.1 (and 28.7.7) with my 2023 MacBookPro M3 Max. Same issue whether on the laptop display, LG, Studio Display or EIZO. Issue persisted after resetting Illustrator preferences, restarting Illustrator and restarting the computer. Changing display resolution and refresh rate had no impact. I believe cleaning the font caches was the solve.
Copy link to clipboard
Copied
This appears to be an issue with UI scaling. Try to edit UI scaling in your Display resolution on your operating system.
It may then show all the items, but your screen may get really small-detailed.
However, it's possible to cycle the dropdown options using the arrow keys, and it may be also an alternative to create a custom "popup" dialog which has a ListBox, and here you can build in a fuzzy-search input to help filter or find any list items.
Copy link to clipboard
Copied
I believe it was a font cache issue... clearing htem out appears to have resolved it.
Copy link to clipboard
Copied
That's good to know! Thanks for sharing the solution which worked for you.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now