Skip to main content
lfcorullon13651490
Legend
February 6, 2018
Question

DropDownList height

  • February 6, 2018
  • 1 reply
  • 651 views

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.

This topic has been closed for replies.

1 reply

Colin Flashman
Community Expert
Community Expert
February 7, 2018

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.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
lfcorullon13651490
Legend
February 7, 2018

Hi, Colin. Thanks for the answer.

This preferredSize.height changes the appearance of the closed list (its

height on window).