When creating a dropdown in After Effects ExtendScript code. The dropdowns sometimes display extra bottom spacing. For example, this code:
var window = new Window("palette", "Dropdown Example", undefined);
window.add(
"dropdownlist",
undefined,
["Option 1", "Option 2", "Option 3", "Option 4", "Option 5"]
);
window.show();
Creates this dropdown:
Notice the gap at the bottom, where I drew the green star in the screenshot.
Note, we have also noticed, changing your Windows Display Scaling has an effect on this.