Improve HiDPI support and fix 0 item submenus