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

height=0 for timelines rendered behind a tab #71

Open
marcbowes opened this issue Jul 13, 2015 · 0 comments
Open

height=0 for timelines rendered behind a tab #71

marcbowes opened this issue Jul 13, 2015 · 0 comments

Comments

@marcbowes
Copy link

If I render a timeline behind a Bootstrap tab that is not visible, the timeline is created with an attribute of height="0".

For example, consider a page with two tabs named A and B. B will contain the timeline and is asynchronously loaded. That is, when the page is loaded, A is visible by default and users can click B to see the timeline. If the user clicks B before the data is loaded, they see a "loading" message.

The bug is: If the timeline renders before the user clicks B, the svg will have a height of 0 (it is not visible).

Note that if the user clicks B while the timeline is loading, things work as expected.

I think that the height calculation is somehow dependent on whether the timeline is visible or not. I've worked around the issue by setting the height explicitly.

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

1 participant