Method GetContainerSize
GetContainerSize()
Gets the size of the SuperView's content (nominally the same as the SuperView's GetContentSize()) or the screen size if there's no SuperView.
public Size GetContainerSize()
Returns
Remarks
This method provides fallback logic to ensure that a size is always returned, even if the SuperView is not set or not initialized. The order of precedence is:
- SuperView's content size (if SuperView is set and initialized)
- TopRunnableView's content size (if TopRunnableView is set, not the current view, and initialized)
- Application's screen size (if Application is set)
- Driver's screen size (if Driver is set)
- Fallback to a default size of 2048x2048