Skip to content

Height of openseadragon div is zero #2489

Answered by pearcetm
marcosocamargo asked this question in Q&A
Discussion options

You must be logged in to vote

This article on flex will help you understand what to do: https://css-tricks.com/snippets/css/a-guide-to-flexbox/

In order to grow to fill the space as you want it to <div> needs to be within a container that defines the overall height, and that has display:flex; flex-direction:column;.

Try the following (not tested):

<div style="height:100vh; display:flex; flex-direction:column">
    <div id="openseadragon1" style="flex-grow:1"></div>
</div>

Replies: 27 comments 22 replies

Comment options

You must be logged in to vote
3 replies
@marcosocamargo
Comment options

@marcosocamargo
Comment options

@pearcetm
Comment options

Answer selected by marcosocamargo
Comment options

You must be logged in to vote
1 reply
@iangilman
Comment options

Comment options

You must be logged in to vote
1 reply
@iangilman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@iangilman
Comment options

Comment options

You must be logged in to vote
1 reply
@pearcetm
Comment options

Comment options

You must be logged in to vote
1 reply
@pearcetm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pearcetm
Comment options

Comment options

You must be logged in to vote
1 reply
@iangilman
Comment options

Comment options

You must be logged in to vote
1 reply
@iangilman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@iangilman
Comment options

@marcosocamargo
Comment options

@iangilman
Comment options

Comment options

You must be logged in to vote
1 reply
@iangilman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pearcetm
Comment options

Comment options

You must be logged in to vote
1 reply
@pearcetm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@iangilman
Comment options

@msalsbery
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@iangilman
Comment options

@msalsbery
Comment options

@marcosocamargo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants