Closed #4986: May exceed the maximum margin of rect