Returns a rectangle representing reasonable position for where to place a UI element of the specified size given the restraints and locations of the scrollbars. This method does not take into account any already placed UI elements.
The starting horizontal and vertical position.
the size of the UI element to get a start position for.
The horizontal padding to use.
The vertical padding to use.
The workspace UI metrics.
The workspace.
The suggested start position.
Returns a rectangle representing reasonable position for where to place a UI element of the specified size given the restraints and locations of the scrollbars. This method does not take into account any already placed UI elements.