Using custom frame calculation instead of statusBarFrame

statusBarFrame is invalid when status bar is hidden so it won't work