Use full window height #4049
Replies: 2 comments 3 replies
-
Do you know about |
Beta Was this translation helpful? Give feedback.
-
Hi @jammerhund, "Full width" and "full height" usually refer to the size of the parent container. In case of your rows, there is no container except of the web page itself. And since a web page has basically infinite (or undefined) height, setting an element's height to "full" (or 100%) has no effect. But we can introduce a container, like the with ui.column().classes('border w-full h-[calc(100vh-2rem)]'):
with ui.row().classes('border w-full h-full'):
ui.label('main area')
with ui.row().classes('border w-full'):
ui.label('state area') Last but not least, letting the main area grow to full height automatically leaves enough space for the state area. By the way, I'm using Tailwind classes "w-*" and "h-*" here for their flexibility when it comes to custom values. See #3079 (comment) for a similar discussion. |
Beta Was this translation helpful? Give feedback.
-
Question
Hi,
i try to build a simple layout with a mainarea and a small statearea on bottom of the browser window. The mainarea should use the full height of the window. But it does only use the height of the ui.label('Mainarea'). How can i do this?
Beta Was this translation helpful? Give feedback.
All reactions