Fix margin bug with legacy fullscreen mode