Skip to main content
Known Participant
June 14, 2020
Answered

Dropdown list not appearing correct in script UI

  • June 14, 2020
  • 4 replies
  • 1361 views

Is there a way to fix this so that all options are readable?

 

This topic has been closed for replies.
Correct answer CarlosCanto

also if you have a relatively short list, you can add one or two "dummy" (blank) entries at the end. Usually one empty entry at the end should do.

4 replies

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
June 16, 2020

also if you have a relatively short list, you can add one or two "dummy" (blank) entries at the end. Usually one empty entry at the end should do.

Charu Rajput
Community Expert
Community Expert
June 16, 2020

I have strange behaviour, noticed today.

Illustrator CC 2020

 

Photoshop CC 2020

 

I think till yesterday it was black background behind the list in Photoshop too. I just tried now. It looks like this.

Edit : Added version of Illustrator and Photoshop

Best regards
CarlosCanto
Community Expert
Community Expert
June 16, 2020

it's a known issue, the problem was introduced a few versions ago. Unfortunately there's no solution for it, other than replacing the dropdown with a list.

Charu Rajput
Community Expert
Community Expert
June 14, 2020

Hi,

I am not sure how did you create this and what sizes you have picked. Did you use jsx to create a UI or HTML/CSS.

 

Here is a snippet that will give you an idea for adobe Script UI(JSX) not HTML/CSS

 

var dialog = new Window("dialog");
dialog.text = "Dialog";
dialog.preferredSize.width = 400;
dialog.orientation = "column";
dialog.alignChildren = ["left", "top"];
dialog.spacing = 10;
dialog.margins = 16;

var _list_array = ["Long Text Testing", "Small Text", "Very Long Text Testing", "3"];
var _list = dialog.add("dropdownlist", undefined, undefined, { name: "_list", items: _list_array });
_list.selection = 0;
_list.alignment = ["left", "top"];

dialog.show();

 

 

Let us know if this works for you or share your code so that we can help you out in that.

 

Best regards
Known Participant
June 14, 2020

It's just one line of code, all jsx, I'll have to play some more with those options, thanks!

 

w.grp5.add ("dropdownlist", undefined, ["Approximate Space", "Number"]);
Charu Rajput
Community Expert
Community Expert
June 14, 2020

ok, may be you have given some width to the gorup or some other property, because you are adding the dropdownList inside the group. or you can try above snippet and change as per your requirement.

Best regards
pixxxelschubser
Community Expert
Community Expert
June 14, 2020

Do you use auto layout or fixed sizes?