SetPosition now uses window dimensions.