Skip to content

cannot control position of timeline elements #1294

Open
@TheophileMot

Description

@TheophileMot

I'm using visjs with stacking turned off, so that each row (except the last) has the same height.

Whenever the timeline renders, it overwrites the top and transform CSS properties of each item, making it impossible to reposition them. So, for example, if you have an item like so:

{
  id: 1,
  group: 1,
  content: 'asdf',
  style: "top: 0"
}

then as soon as you drag the timeline, the corresponding DOM element will have style="top: 5px;", popping it out of place. Is there a workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions