Fixed offset when 10 treasure chests would run into the window border.