/Engine/Source/Runtime/UMG/Public/Components/Widget.h
Gets the widgets desired size. NOTE: The underlying Slate widget must exist and be valid, also at least one pre-pass must have occurred before this value will be of any use.
The widget's desired size
FVector2D GetDesiredSize() const