correctly handle fixed-size windows in grid