Update container margins according to the header and tabbar measures