check if option is listoption before checking if it's the active dropdown option

This commit is contained in:
yugecin 2017-05-28 16:18:20 +02:00
parent 65f95696eb
commit 1a9e6ab0da

View File

@ -418,7 +418,8 @@ public class OptionsOverlay extends OverlayOpsuState {
if (!option.showCondition() || option.isFiltered()) {
continue;
}
if (y > -optionHeight || (openDropdownMenu != null && openDropdownMenu.equals(dropdownMenus.get(option)))) {
if (y > -optionHeight || (option instanceof ListOption && openDropdownMenu != null
&& openDropdownMenu.equals(dropdownMenus.get(option)))) {
renderOption(g, option, y);
}
y += optionHeight;