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

Drowpdownlist height

Community Beginner ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

Why when creating a Dropdownlist with many items, I can't see them all? How can I add a scrollbar or increase the size of the dropdown list?

TOPICS
Scripting

Views

342

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Mar 24, 2024 Mar 24, 2024

how's your screen resolution?

 

mine

CarlosCanto_0-1711342536244.png

 

Votes

Translate

Translate
Adobe
Community Expert ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

can you post your code?

Votes

Translate

Translate

Report

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 Beginner ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

var doc = app.activeDocument;
var dialog = new Window("dialog", "Dropdownlist com 10 Itens");

var dropdownlist = dialog.add("dropdownlist", undefined, ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "Item 8", "Item 9", "Item 10"]);
dropdownlist.selection = 0;

var okButton = dialog.add("button", undefined, "OK");
okButton.onClick = function() {
  alert("Você selecionou: " + dropdownlist.selection.text);
  dialog.close();
};

dialog.show();

 

rdFerrarezzi_0-1711295825178.png

 

Votes

Translate

Translate

Report

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 ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

are you on Mac? I'm on Windows 11, I get this

 

CarlosCanto_0-1711310217806.png

 

Votes

Translate

Translate

Report

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 ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

Hi @rdFerrarezzi, this is what I see (MacOS 14.4, AI 28.3):

Screenshot 2024-03-25 at 09.00.56.pngScreenshot 2024-03-25 at 09.01.03.png

Votes

Translate

Translate

Report

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 Beginner ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

Windows 10

Votes

Translate

Translate

Report

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 ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

how's your screen resolution?

 

mine

CarlosCanto_0-1711342536244.png

 

Votes

Translate

Translate

Report

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 Beginner ,
Mar 27, 2024 Mar 27, 2024

Copy link to clipboard

Copied

I checked the resolution and it was the same as yours, but when I changed it to 100% scale it resolved, who would have thought?

Votes

Translate

Translate

Report

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 ,
Mar 27, 2024 Mar 27, 2024

Copy link to clipboard

Copied

LATEST

Thanks for sharing that Screen Scaling was part of the solution!

Votes

Translate

Translate

Report

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