[NUI] Fix Picker scroll issue with 4 or fewer items
authorWoochanlee <wc0917.lee@samsung.com>
Wed, 16 Jun 2021 09:47:04 +0000 (18:47 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 23 Jun 2021 08:25:09 +0000 (17:25 +0900)
src/Tizen.NUI.Components/Controls/Picker.cs

index 97a4ff76aef148cd907a2b0d44f04d2452148ac2..9035521997a4066044db728ea5d105e7f9934b0b 100755 (executable)
@@ -372,7 +372,10 @@ namespace Tizen.NUI.Components
             onAnimation = false;
             if (onAlignAnimation) {
                 onAlignAnimation = false;
-                PageAdjust(e.Position.Y);
+                if (loopEnabled == true)
+                {
+                    PageAdjust(e.Position.Y);
+                }
                 if (currentValue != ((int)(-e.Position.Y / itemHeight) + 2))
                 {
                     currentValue = ((int)(-e.Position.Y / itemHeight) + 2);