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

Timeline focus() doesn't center vertically #2851

@instacyber

Description

@instacyber

When I call focus() on a specific item ID, it centers the timeline horizontally on this item (i.e. by date) as expected.

However, when constraining a timeline with a maxHeight and rendering a timeline with more groups than can fit in the view window, calling focus() does not pull the vertical scroll in a way that also displays the selected item if it is not currently visible.

Is this expected behaviour? Examination of the function code in vis.js suggests that it doesn't attempt any vertical correction, which I believe would be helpful to completely enact a "focus" on a specific item.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions