35 Messages
•
702 Points
Mon, Dec 14, 2015 11:28 PM
Solved
Photoshop CC 2015.1: Mac Only Script UI bug with dropdown menus
With the release of CC 2015.1, in Mac only, the dropdown menu width will auto expand past the set width to the width of largest menu item. Prior to CC 2015.1, the dropdown menu would stay at the defined width. The dropdown items would expand when clicking the dropdown menu. However, the dropdown menu itself would not expand.
To test whether it was my scripts only, I added action sets and actions with long names and then opened Image Processor. This issue can be seen on the Image Processor Script too. The action sets with a long name will expand the action set dropdown menu width. However, after selecting an action set, when the action dropdown menu populates, it will not expand the width of the dropdown menu. Therefore, it appears that the menu items will not affect the width of the dropdown after the UI window is created.
As a work around, I put the menu items I needed for my scripts into an array. Then, I looped through the array during the window.onShow function. This fixes the issue for my scripts. I also tried putting the code to populate the dropdown menu right before window.show(). However, that did not work. The only way to make it work was inside of the onShow function.
Windows does not seem to have this issue. Also, I only have Mac Yosemite OS to test and it has not been tested on El Capitan OS.
To test whether it was my scripts only, I added action sets and actions with long names and then opened Image Processor. This issue can be seen on the Image Processor Script too. The action sets with a long name will expand the action set dropdown menu width. However, after selecting an action set, when the action dropdown menu populates, it will not expand the width of the dropdown menu. Therefore, it appears that the menu items will not affect the width of the dropdown after the UI window is created.
As a work around, I put the menu items I needed for my scripts into an array. Then, I looped through the array during the window.onShow function. This fixes the issue for my scripts. I also tried putting the code to populate the dropdown menu right before window.show(). However, that did not work. The only way to make it work was inside of the onShow function.
Windows does not seem to have this issue. Also, I only have Mac Yosemite OS to test and it has not been tested on El Capitan OS.
Problems
•
Updated
5 years ago
1
5
Helpful Widget
How can we improve?
Tags
No tags available
Responses
Official Solution
JeffreyTranberry
Adobe Administrator
•
15.8K Messages
•
295K Points
5 years ago
Sr. Product Manager, Adobe Digital Imaging
0
0
Official Solution
JeffreyTranberry
Adobe Administrator
•
15.8K Messages
•
295K Points
5 years ago
Sr. Product Manager, Adobe Digital Imaging
0
0
chris_cox_2148894
15.1K Messages
•
195.8K Points
5 years ago
0
0
damon_bell
35 Messages
•
702 Points
5 years ago
This is the same menu item type that is used in the Image Processor script for the action sets and actions dropdown lists. To see if the problem was only my scripts or I tested the Image processor script. I created actions and sets with really long names and opened Image Processor. Image processor did the same thing. The action Sets dropdown expands and pushes the UI width out. However, after selecting an action set, the actions dropdown does not expand when it populates with the long action names.
Based on my testing, I figured out it was not my scripts causing the issue.
0
0
damon_bell
35 Messages
•
702 Points
5 years ago
0
0