making sure the default padding of the root fits the system window