MainFrame: adjust auto-zoom logic