X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-relayouter.cpp;h=a9006013119b29cbe007a288c0ee14012f80a22e;hb=b8da2e53925b9abb9fa362560069e8ca4aa62f81;hp=8888859fc1df857b1b9a78bcd3f69d088998216f;hpb=ebc31d0e211cb33fe359071bcab608dbdc400080;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-relayouter.cpp b/dali-toolkit/internal/text/text-controller-relayouter.cpp index 8888859..a900601 100644 --- a/dali-toolkit/internal/text/text-controller-relayouter.cpp +++ b/dali-toolkit/internal/text/text-controller-relayouter.cpp @@ -651,7 +651,9 @@ void Controller::Relayouter::CalculateVerticalOffset(Controller& controller, con layoutSize.height = defaultFontLineHeight; } - if (layoutSize.height != defaultFontLineHeight) + // Whether the text control is editable + const bool isEditable = NULL != impl.mEventData; + if (isEditable && layoutSize.height != defaultFontLineHeight) { // This code prevents the wrong positioning of cursor when the layout size is bigger/smaller than defaultFontLineHeight. // This situation occurs when the size of placeholder text is different from the default text.