[NUI] Fix Switch thumb positioning
authorJiyun Yang <ji.yang@samsung.com>
Wed, 15 Feb 2023 02:36:52 +0000 (11:36 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Tue, 21 Feb 2023 11:04:00 +0000 (20:04 +0900)
commit838083d17a959187a8fcdba310d43503cccf11a2
tree9be9fc90b6616dba19b43dd5f16099ddec64fef5
parent81207bc5c6311c00e6f0c469e70c298fb63547dc
[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