From: EverLEEst(SangHyeon Lee) Date: Thu, 15 Dec 2022 11:35:37 +0000 (+0900) Subject: [NUI] fix relative layout to fill regardless of children size. X-Git-Tag: submit/tizen_7.0/20230221.093606~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4fe80767f6a57f4ccf4f9a6e554c66fdc7d2d4e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] fix relative layout to fill regardless of children size. --- diff --git a/src/Tizen.NUI/src/internal/Layouting/RelativeLayout.cs b/src/Tizen.NUI/src/internal/Layouting/RelativeLayout.cs index 52c9a95..07d24b2 100755 --- a/src/Tizen.NUI/src/internal/Layouting/RelativeLayout.cs +++ b/src/Tizen.NUI/src/internal/Layouting/RelativeLayout.cs @@ -175,7 +175,7 @@ namespace Tizen.NUI Geometry viewGeometry = new Geometry(startPosition + ((endPosition - startPosition - viewSize) * alignment), viewSize); Geometry spaceGeometry = new Geometry(startPosition, Math.Abs(endPosition - startPosition)); - if (fill && spaceGeometry.Size > viewGeometry.Size) + if (fill) { viewGeometry = spaceGeometry; }