Change name from size to windowSize for window sizing method.