Making the isDocked check more robust by incorporating browser zoom