take initial layout into account