Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

スクロールできない場合padding headが効かない #49

Closed
square1983 opened this issue Sep 22, 2020 · 3 comments
Closed

スクロールできない場合padding headが効かない #49

square1983 opened this issue Sep 22, 2020 · 3 comments

Comments

@square1983
Copy link

お疲れ様です、エンジニアの楊と申します。
今担当している案件ではFancyScrollViewライブラリは使われています、とても優秀なライブラリと思いました、ありがとうございました。
開発中で一点気になったことがあります。スクロールビューの中セル数が多い場合(スクロールバーが表示される)padding headは効いてますけど、セル数が少ない場合(スクロールバーが表示されない)padding head設定は効かない、一番目のセルとTopの距離は固定されています。
ソースコードを拝見しまして、FancyScrollRect.cs#L108のところ、base.UpdatePosition(Scrollable ? ToFancyScrollViewPosition(p) : 0f);処理は分岐されています。ここは何か意図はございますか?スクロールできるできないににかかわらず、同じpadding headにしたい場合は如何設定すれば良いでしょうか?
お手数ですが、ご確認のほど宜しくお願い致します。

@setchi
Copy link
Owner

setchi commented Sep 23, 2020

@square1983
ご報告ありがとうございます。

実装が間違っていました。下記が本来の意図だったので修正させていただきました。

base.UpdatePosition(ToFancyScrollViewPosition(Scrollable ? p : 0f));

よろしくお願いいたします。

@alim-youken
Copy link

@setchi
ご対応ありがとうございました、大変助かりました。

@square1983
Copy link
Author

@setchi
ご対応ありがとうございました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants