Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

DropDownList height

Enthusiast ,
Feb 06, 2018 Feb 06, 2018

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.

TOPICS
Scripting
660
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 07, 2018 Feb 07, 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!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 07, 2018 Feb 07, 2018
LATEST

Hi, Colin. Thanks for the answer.

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

height on window).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines