Refine frameForViewController: to take into account extended edges layout.
Fix a status bar compensation issue.