Need to know how can we have a fixed height and width for openseadragon container #2484
Unanswered
suganya27302
asked this question in
Q&A
Replies: 1 comment 6 replies
-
OpenSeadragon always grows to fill the container you give it, so whatever styling you want to do on the container element should work. You can test this even without OSD... Give your element a background color and style it to fill the space you want. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I provide a width like this it is not scable across the screens. So I tried to provide the width with JS style
container = containerref.current!
width: container.offsetWidth,
height: container.offsetHeight,
But its width does not take the entire container on exiting from the fullscreen. The image shrinks. Can someone help with this problem?
Beta Was this translation helpful? Give feedback.
All reactions