fix the problem that the scroll-arrow would appears. And in linux, fix the problem that menu would close before user selects any item.