Copy link to clipboard
Copied
Hello, there.
Is there a way to set maximum height for a dropdownlist when it's showing?
I have a very huge list, when I click to select, I'll prefer to have more scroll instead of a list occupying almost my screen's height.
I tried preferredSize.height, but, of course, it changes the size of the closed list on window.
Is it possible?
Thanks in advance.
Regards from Brazil.
Copy link to clipboard
Copied
Hmm, it should work.
When I look at the full specs for dropdown (SUI): https://www.indesignjs.de/extendscriptAPI/indesign-latest/#DropDownListSUI.html
there are minimum and maximum sizes.
If you look at Peter Kahrel's scriptUI for dummies (revision 2.13 dec 2016) and look at the script on page 48, is the code being used for the preferredSize.height syntax what your script looks like?
Hope this helps.
Copy link to clipboard
Copied
Hi, Colin. Thanks for the answer.
This preferredSize.height changes the appearance of the closed list (its
height on window).