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

Grid height 100% and resize #2561

Open
dirkk0 opened this issue Sep 25, 2024 · 0 comments
Open

Grid height 100% and resize #2561

dirkk0 opened this issue Sep 25, 2024 · 0 comments

Comments

@dirkk0
Copy link

dirkk0 commented Sep 25, 2024

Short description
Setting the height of the main div to '100%'; or omit

What is current behavior
If you take the sidebar and grid example, the grid's height is set to a fixed value. If I set the main div to '100%', the grid vanishes.

What is desired behavior
The grid should adapt to a 100% div.

A possible workaround is to set the grid height with javascript:

window.onresize = onResize

function onResize() {
  let h = window.innerHeight
  h = h + "px"
  main.style.height = h 
}
onResize()

but that seems unnecessarily complicated to me.
If for some reason this is not a bug but a desired behaviour, it should be mentioned in the docs.

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