fix #664, layout for dropdown