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

[Timeline] Group height mode #3670

Merged
merged 4 commits into from
Dec 9, 2017

Conversation

ghost
Copy link

@ghost ghost commented Nov 18, 2017

Hi everyone, long time lurker here, I absolutely love this project and since I have made several changes to the library over the past few months (for a project at work) I think it's time to say thank you with a couple of PRs.

Here's the first one: it adds a global parameter called groupHeightMode that can be overriden by a group and can have two values: 'auto' or 'fixed'. Basically it specifies how the height of a group gets calculated. If it's set to 'auto' the height is calculated based on the visibile items, like always. On the other hand, with the 'fixed' value the group keeps the same height even if there are no visible items in the timeline at that moment.

I think it's a nice feature to have, hope to see it in some future version :)

@mbroad
Copy link

mbroad commented Nov 25, 2017

I like it

<td>heightMode</td>
<td>String</td>
<td>no</td>
<td>This field is optional. If set this overrides the global <code>groupHeightMode</code> configuration option for this group.</td>
Copy link
Member

Choose a reason for hiding this comment

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

Can you please all the valid option ('auto' and 'fixed') to this description.

Copy link
Author

Choose a reason for hiding this comment

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

Sure, done.

@mojoaxel
Copy link
Member

@francescogc Also please update your feature branch to the current develop branch (git merge origin/develop)

@ghost
Copy link
Author

ghost commented Nov 28, 2017

@mojoaxel feature branch is now up to date but I can't scroll anymore in the timeline... Is it just for me? :\

@yotamberk
Copy link
Contributor

I fixed it. My mistake in a previous PR.

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.

Looks great!
It is important to mention that using this mode will hinder performance for many items on the same group.

@yotamberk yotamberk merged commit 9ae7d62 into almende:develop Dec 9, 2017
@ivowiblo
Copy link

Hi!
Has this been merged and released?

@ivowiblo
Copy link

If so, in which version? I couldn't find it in the latest distributable

mojoaxel pushed a commit to visjs/vis_original that referenced this pull request Jun 9, 2019
* add heightMode option

* add documentation

* improve documentation
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.

4 participants