From 1a19fc8ebce6bb76e7e393761fded42f1ade1b90 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Thu, 16 Jun 2022 11:16:34 +0900 Subject: [PATCH] [Tizen] fix incorrect calculaion of natural size in text In DoRelayout of GetNaturalSize/GetHeightForWidth, operationsPending should inlcude LAYOUT. Without this, incorrect size calculations will occur. Change-Id: I7fd1bca412325772ddc24b3ab36753b82a08e7de Signed-off-by: Bowon Ryu --- dali-toolkit/internal/text/text-controller-relayouter.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dali-toolkit/internal/text/text-controller-relayouter.cpp b/dali-toolkit/internal/text/text-controller-relayouter.cpp index 742089c..bd1c5b2 100644 --- a/dali-toolkit/internal/text/text-controller-relayouter.cpp +++ b/dali-toolkit/internal/text/text-controller-relayouter.cpp @@ -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(operationsPending | requestedOperationsMask); - } + // Layout the text for the new width. + operationsPending = static_cast(operationsPending | requestedOperationsMask); DoRelayout(controller, requestedControllerSize, -- 2.7.4