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

Dropdown list not appearing correct in script UI

Participant ,
Jun 14, 2020 Jun 14, 2020

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

 

ddb.png

TOPICS
Scripting
1.4K
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

correct answers 1 Correct answer

Community Expert , Jun 15, 2020 Jun 15, 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.

Translate
Adobe
Community Expert ,
Jun 14, 2020 Jun 14, 2020

Do you use auto layout or fixed sizes?

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 ,
Jun 14, 2020 Jun 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
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
Participant ,
Jun 14, 2020 Jun 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"]);
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 ,
Jun 14, 2020 Jun 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
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
Participant ,
Jun 15, 2020 Jun 15, 2020

So this is what I see when I run your code... I can't scroll down to see the 4th option of "3". 

 

dd2.png

 

I'm not sure what the problem is exactly.

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
New Here ,
Nov 25, 2020 Nov 25, 2020
LATEST

Try adjusting Preferences > User Interface > UI Scaling to the smallest setting. I had this same issue and that fixed it.

Hope that helps. 

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 ,
Jun 15, 2020 Jun 15, 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.

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 ,
Jun 15, 2020 Jun 15, 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.

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 ,
Jun 15, 2020 Jun 15, 2020

I have strange behaviour, noticed today.

Illustrator CC 2020

Screenshot 2020-06-16 at 10.16.47 AM.png

 

Photoshop CC 2020

Screenshot 2020-06-16 at 10.17.56 AM.png

 

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
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