[NUI] Add TextFieldLayout and TextEditorLayout
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 15 Dec 2021 09:54:12 +0000 (18:54 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 19 Jan 2022 05:29:33 +0000 (14:29 +0900)
commit8c0b68eef5a2933bb30dd0a2b92e578af1198cae
treeb33d6c423f28b680d8dd9fbfb3e134c3be88463c
parent74d1e3eeb15d70de7565454dac70164d45ec0a74
[NUI] Add TextFieldLayout and TextEditorLayout

In DALi, the default HeightResizePolicy of TextField and TextEditor is
FillToParent.
Because of this, TextField and TextEditor fill their parent's height by
default although text is null string.

If TextField and TextEditor's parent has Layout, then their sizes should
be calculated based on their Width/HeightSpecification.

To calculate TextField and TextEditor's size based on their
Width/HeightSpecification, TextFieldLayout and TextEditor are added.
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/TextEditorLayoutTest.cs [new file with mode: 0755]
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/TextFieldLayoutTest.cs [new file with mode: 0755]