Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Vertical focus #3504

Merged
merged 5 commits into from
Sep 30, 2017
Merged

Vertical focus #3504

merged 5 commits into from
Sep 30, 2017

Conversation

Areson
Copy link
Contributor

@Areson Areson commented Sep 30, 2017

This pull request is an attempt to satisfy #2851. Adds vertical scrolling support to the focus method by hooking into the existing animation for setting the range. The setSelection example was updated with a second example showing vertical scrolling when using focus.

Ian Oberst added 3 commits September 29, 2017 17:10
… on an element, both for animated and non-animated calls of focus
- Turned on animation for the focus in the example
- Updated function documentation
Copy link
Contributor

@yotamberk yotamberk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really AWESOME work!
3 small issues:

  1. Docs on this new param of setRange is missing.
  2. The behavior of the Select next and Select previous buttons in the example is really unclear.
  3. Make sure there is a space after every if statement.

Thanks! Really nice work!

…nge'

- Fixed the documentation on 'setRange' for the 'callback' parameter
- Fixed code not meeting style guidelines
@Areson
Copy link
Contributor Author

Areson commented Sep 30, 2017

Updated 1 and 3. I'll get to 2 later today.

…the example buttons do. Focus the language to be more consistent with that fact that the demo uses "setSelection"
@Areson
Copy link
Contributor Author

Areson commented Sep 30, 2017

I've updated the example to try to be a bit more clear about what it is demonstrating and what the buttons do. Let me know if it is more in line with what you wanted to see, and if there is a different direction you want it to go let me know.

Copy link
Contributor

@yotamberk yotamberk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thank you!

@yotamberk yotamberk merged commit 51a8977 into almende:develop Sep 30, 2017
primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
* - Added support for vertical scrolling while the timeline is focusing on an element, both for animated and non-animated calls of focus

* - Adjusted item offset calculations to use the item parent
- Turned on animation for the focus in the example
- Updated function documentation

* - Fixing lint issues

* - Added documentation for the new 'frameCallback' parameter of 'setRange'
- Fixed the documentation on 'setRange' for the 'callback' parameter
- Fixed code not meeting style guidelines

* - Updated the example for "setSelection" to be more clear about what the example buttons do. Focus the language to be more consistent with that fact that the demo uses "setSelection"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants