-
I have an ipyleaflet widget on my quarto website. when using format:
html:
page-layout: custom By default, the widget takes up the entirety of the screen width and automatically readjusts if the screen size changes. This is great. How can I do the same for the widget height? i.e such my page has no whitespace and no scrollbar. I know I can change the height of the widget while creating it with using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved by discovering viewport units!
Or to account for the already occupied screen real estate, in my case a 90 pixel high header: |
Beta Was this translation helpful? Give feedback.
Solved by discovering viewport units!
widget.layout.height = "100vh"
Or to account for the already occupied screen real estate, in my case a 90 pixel high header:
widget.layout.height = "calc(100vh - 90px)"