Copy link to clipboard
Copied
Hello Community.
I've stumbled over a strange behavior with DropDownLists that could be a bug with AFX. Maybe somebody can confirm or - even better - knows a solution.
I have a plugin with a fluid interface . By fluid I mean: alignment:['fill','fill'], alignChildren:['fill','fill']. I've put a DropDownList into this and it change its size as intended. I can drag the window or panel to make it wider and the list gets wider too. However, when I narrow the window or panel again, the size of the items in the list stays at their previous width.
It's not happening when I run the script with ExtendScript Toolkit CC, only in AFX.
The relevant code:
group{orientation:'column', alignment:['fill','fill'], alignChildren:['fill','fill'],\
panelComp: Panel{text:'Composition', orientation:'row', alignment:['fill','top'], alignChildren:['fill','fill'],\
compList: DropDownList{properties:{items:['all', 'selected']}},\
},\
Screenshots:
1. normal size:


2. wider:


3. back to normal size:


Thank you!
Martin
Martin, yes this is a bug. I've run into this as well. Also did a post here awhile back, but can't seem to find it at the moment. It'a very annoying and I never really found a solution to fix it unfortunately.
Copy link to clipboard
Copied
Martin, yes this is a bug. I've run into this as well. Also did a post here awhile back, but can't seem to find it at the moment. It'a very annoying and I never really found a solution to fix it unfortunately.
Copy link to clipboard
Copied
Yeap, it's a bug.
Copy link to clipboard
Copied
Thank you guys.
I've fixed to size of the dropdownlist to avoid oversize. It's not perfect, but a workaround.
"One of our software engineers is looking into this bug" - Adobe, 10.06.2015
This engineer must have a very deep look into the code...
Copy link to clipboard
Copied
Setting the itemSize to the size of the Dropdown (with correction faktor) did the trick:
myPanel.onResizing = myPanel.onResize = function(){
mainPanel.panelComp.compList.itemSize = [mainPanel.panelComp.compList.size[0]-27,mainPanel.panelComp.compList.size[1]];
};
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more