Fixes improper placement of dropdown buttons

When dropdown buttons are hidden on the page, their outerHeight calculation is incorrect, resulting in bad placement of the dropdown list. This fixes that. See commit notes for more information.