[Tizen] Fix editable text font size update issue 19/305319/1
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 31 Jan 2024 04:44:10 +0000 (13:44 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Wed, 31 Jan 2024 08:19:28 +0000 (17:19 +0900)
commit99c176aa8e2358b7c796b6e77af3e5f80d906154
tree060f4b54c3cc974a7bb0564cc7ab0c8a2bbe8565
parente7cc36cc2024fdee221faf15d0aa6f7d19b7867c
[Tizen] Fix editable text font size update issue

There is an issue that the font runs of the editable text area are separated
when the font size is updated.

If the editable text is an active state and the font size is updated,
the input font size should also be updated.

And due to the feature that changes the selected area's font size when the input font size is updated,
unintended font run separation and font size change occur if there is selected text when updating the font size.

This patch fixed so that the selection-related logic is not executed
when SetInputFontPointSize is called due to an update of the default font size.

Change-Id: I1a5f5190d00a25291a8cafc215f5bf0df2cd71f7
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-TextField.cpp
dali-toolkit/internal/text/controller/text-controller-input-font-handler.cpp
dali-toolkit/internal/text/controller/text-controller-input-font-handler.h
dali-toolkit/internal/text/controller/text-controller.cpp
dali-toolkit/internal/text/controller/text-controller.h