Skip to content

Add scrollOffset option and update scrollTop option#51

Merged
SilverFire merged 3 commits intoyiisoft:masterfrom
derekisbusy:scrollOffset
Sep 27, 2017
Merged

Add scrollOffset option and update scrollTop option#51
SilverFire merged 3 commits intoyiisoft:masterfrom
derekisbusy:scrollOffset

Conversation

@derekisbusy
Copy link

Includes changes from #42.

  • Updated scrollTo option to accept a function callback with parameters context and hash.
  • Updated scrollTo option if set to true page will scroll to pjax container.
  • Added scrollOffset option to offset the scrollTo position if needed. scrollOffset can be a callback function with the current scrollTo value passed as a parameter.

derekisbusy and others added 3 commits February 16, 2017 14:44
…rs context and hash.

Updated `scrollTo` option if set to true page will scroll to pjax container.
Added `scrollOffset` option to offset the `scrollTo` position if needed. `scrollOffset` can be a callback function with the current `scrollTo` value passed as a parameter.
@SilverFire SilverFire added this to the 2.0.7 milestone Sep 27, 2017
@SilverFire SilverFire self-assigned this Sep 27, 2017
@SilverFire SilverFire merged commit 49106c6 into yiisoft:master Sep 27, 2017
@SilverFire
Copy link
Member

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

Successfully merging this pull request may close these issues.

2 participants