Replace 'viewController.frame' to 'viewController.bounds'

Replace `viewController.frame.size` to `viewController.bounds.size` to avoid issues in landscape mode.