setchi / FancyScrollView

[Unity] Scroll view component that can implement highly flexible animations.
https://setchi.jp/FancyScrollView/
MIT License
3.04k stars 385 forks source link

PaddingTop doesn't work when the scrollview is initialized #48

Open foxgunner opened 4 years ago

foxgunner commented 4 years ago

Considering Example 7 Scroll Rect, the PaddingTop property doesn't work as intended when the scrollview is initialized at the start if we set the start index as 0.

It only works if we start scrolling the scrollview or if we set the start index as something other than 0.

Thanks for this wonderful plugin.

RINNUXEI commented 2 years ago

Yes, we had the same issue.

And we also found that the alignment setting does not work well with padding as we expected.

For example, when alignment is set to Middle, cells above the middle position will not be dragged when there is not enough space above. We expected it should drag the cells as close as possible to the middle of the viewport so the scroller value becomes 0 in this situation.

Is this behavior by design or just a bug?

Great job by the way, this plugin helped we a lot.