[NUI] Fix text padding issue
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 29 Dec 2023 06:06:24 +0000 (15:06 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Thu, 4 Jan 2024 10:14:10 +0000 (19:14 +0900)
commit758886b19557b20f9f767dafd31da792d874174c
tree18af5a6f454eaa2a60dc1350ed38ef695947fa64
parentb9495e2df970ebb17678086e0bba316db2a966a3
[NUI] Fix text padding issue

This patch solves the problem that text with padding does not work in nui layout.

For text components, the control's padding is used to calculatie size in native,
so it should not be set to zero value.

This avoids setting padding to zero when it comes to text layout.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs