[NUI] Fix Switch thumb positioning
authorJiyun Yang <ji.yang@samsung.com>
Wed, 15 Feb 2023 02:36:52 +0000 (11:36 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 15 Feb 2023 07:45:17 +0000 (16:45 +0900)
commit2f8a2693a007341c4afeafcc3a1e111ec0a58d0f
treef7a800c47bc362d7b985377f5da276454976dee1
parent55fc028c9c940c40f9b614bb37d16252a474002e
[NUI] Fix Switch thumb positioning

When the size of thumb or track changes, the it should update the position of the thumb properly.

And to prevent unnecessary switch state updating while applying style, upgrade styleApplying flag to int type.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/Button.Internal.cs
src/Tizen.NUI.Components/Controls/Button.cs
src/Tizen.NUI.Components/Controls/Extension/SlidingSwitchExtension.cs
src/Tizen.NUI.Components/Controls/Switch.cs