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

ionic Scroll Top #1

Open
DipakMahapurkar opened this issue Sep 27, 2016 · 1 comment
Open

ionic Scroll Top #1

DipakMahapurkar opened this issue Sep 27, 2016 · 1 comment

Comments

@DipakMahapurkar
Copy link

Hey @ihuseynoff, Thanks for Segment Bar. How to scroll view to top on change of tab, if my previous tab have scroll list items. On click of next tab view scroll to top automatically.
Thanks in Advanced

ihuseynoff pushed a commit that referenced this issue Apr 28, 2017
@maheshkumawat23
Copy link

Go to Ionic-segment.js
In 'ionSegmentButton' directive add $ionicscrolldelegate.scrolltop(true) in clicking callBack function

var clickingCallback = function() {
ngModelCtrl.$setViewValue(value);
$ionicscrolldelegate.scrolltop(true)

  };

add $ionicscrolldelegate dependency in directive as well

Thank You

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

2 participants