Reduce unnecessary calc in CalculateVerticalOffset() 34/260234/2
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 22 Jun 2021 08:23:53 +0000 (17:23 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Mon, 28 Jun 2021 07:52:11 +0000 (07:52 +0000)
commit37cb4e81e6b8730f8919fc7b3684bc5cd83b5a73
treed2b0901a855c866e95ac2bcd4efffd6771949789
parent6970e395a31aae5e97be905e01e47fd49e043f94
Reduce unnecessary calc in CalculateVerticalOffset()

The calculation for offsetY is only needed when the placeholder is show.
This patch adds that condition, reducing unnecessary calculations.

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