Set the SPACE_START and SPACE_END traits and adjust the height to take border and padding into account. PR: 25802.