Disable "zoom to selection" and "home" when not available

Issue #174 closed
Anastasia Baryshnikova created an issue

If nothing is selected, the "zoom to selection" button should be disabled (grayed out) to emphasize its role. Same thing for the "home" button (when zoomed out all the way, the button should be disabled).

Comments (7)

  1. Christopher Keil repo owner

    Zoom buttons and the Home button are disabled once all available tiles are shown. Zoom-in buttons are disabled if the zoom level is maximal for the specific axis (= 1 visible tile).

  2. Robert Leach
    • changed status to open

    The Zoom To Selection button does not get disabled when all selected cells fill the view. The Zoom to Selection button should be disabled iff number of visible tiles == number of selected tiles and if first visible == first selected (in both dimensions).

  3. Robert Leach

    Actually, there was still an issue. While I'd closed the ticket the other day, I discovered that the zoom to selection button wasn't getting disabled when no selection existed. That use case now works and is committed to master.

  4. Log in to comment