/** @return the size of the DockNode that looks good in a preview given the initial size of the tab that we grabbed. */ FVector2D FDockingDragOperation::DesiredSizeFrom( const FVector2D& InitialTabSize ) { // Just make sure it isn't too big so it doesn't cover up the whole screen. const float MaxSideSizeAllowed = 800; const float SizeCoefficient = FMath::Clamp( MaxSideSizeAllowed / InitialTabSize.GetMax(), 0.1f, 1.0f ); return InitialTabSize * SizeCoefficient; }