[Tizen] fix incorrect calculaion of natural size in text 94/276394/1 accepted/tizen/6.5/unified/20220629.152606 submit/tizen_6.5/20220616.150849 submit/tizen_6.5/20220628.104132
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 16 Jun 2022 02:16:34 +0000 (11:16 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 16 Jun 2022 02:16:34 +0000 (11:16 +0900)
In DoRelayout of GetNaturalSize/GetHeightForWidth,
operationsPending should inlcude LAYOUT.
Without this, incorrect size calculations will occur.

Change-Id: I7fd1bca412325772ddc24b3ab36753b82a08e7de
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/text-controller-relayouter.cpp

index 742089c..bd1c5b2 100644 (file)
@@ -92,11 +92,8 @@ Size Controller::Relayouter::CalculateLayoutSizeOnRequiredControllerSize(Control
   {
     impl.UpdateModel(onlyOnceOperations);
 
-    if(impl.mIsAutoScrollEnabled)
-    {
-      // Layout the text for the new width.
-      operationsPending = static_cast<OperationsMask>(operationsPending | requestedOperationsMask);
-    }
+    // Layout the text for the new width.
+    operationsPending = static_cast<OperationsMask>(operationsPending | requestedOperationsMask);
 
     DoRelayout(controller,
                requestedControllerSize,