Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are dynamic row heights possible? My events shall have different heights and the row shall adapt #80

Open
user45613168 opened this issue Apr 1, 2021 · 1 comment

Comments

@user45613168
Copy link

My labels are variable of size
e.g.

<h1>small</h1>
test
<h1>big</h1>
<pre>
0
1
2
3
</pre>

At the moment the rows have a fixed size thus the label just overflow into the other rows, i'd rather have the eventbox surrounding the label and the row size adapted to the maximum height of its events.
Is that possible?

@ka215
Copy link
Owner

ka215 commented Apr 7, 2021

Hi there,
Unfortunately, it does not support that has the dynamically height every each row on this plugin. However, by using lines with blank labels, it is possible to pseudo-appear to have variable line heights. Please try to see below because I've created the sample page.

https://ka2.org/jqtl-v2/sample-rows.html

Also source code of above page is here:

https://gist.github.com/ka215/c0d3245c2b35d8fbfdbe49a57de050aa

Notice: the event nodes on the timeline do not change the value of the row as an absolute value, so their placement in the apparent grouped rows must be calculated accordingly.

I'm glad if may help 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

No branches or pull requests

2 participants