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
Option to match the height of its parent container element in timegrid view #5129
Comments
The For now, you could add some CSS like in your videos to get that. |
@acerix thanks for the answer! It will be great to get this feature in new versions. What about CSS. Unfortunately, I can't set a certain height to table tag, because this height can be different (depends on device size). But I will test it on the real devices a little later. |
Guys, I have bought the license for 1 year. If it is possible, can you check this issue for the next release? |
Hi @apoklyak, there's already a ticket for having the slots expand in order to fit the available height: Your twist is that it'd work in conjunction with Making this work would require a lot of work on our end. We want to move towards using flexbox to determine the heights of expanding elements such as this. But it would require a large HTML/CSS refactor of the project. And there's not really a "quick fix" available. You could hack something together that changes the height of the slots based on a mediaquery in CSS. The height of each slot is determined by this CSS selector: .fc-time-grid .fc-slats td { height: 1.5em } What you could do is wrap it in a mediaquery and force it to be larger when the screen is larger. You'll have a difficult time making it fill the exact height of the window, but it's still better than nothing. Hope that helps. |
Hello, everyone!
I have 4 types of calendar views. There are “timeGridDay”, “timeGridWeek”, “dayGridMonth”, “listWeek” types.
And I have an issue with the height of the calendar for some types (“timeGridWeek” and “timeGridDay”).
My goal is to set the height of my calendar to 100%. And I have used your example for this https://fullcalendar.io/docs/full-height-demo. I have set the "parent" type.
It works fine for "dayGridMonth" type. Look at the screenshot https://i.gyazo.com/02dd0293a681ca8745fada3e3a227a4c.png
But it doesn’t work for “timeGridWeek” and “timeGridDay” types. Look at the screenshot
https://i.gyazo.com/1e8252a669162b70299ca470f1b6f441.png
I have an idea of how to fix it.
Look, you have set the height to table background, but forgotten about the table. https://i.gyazo.com/82fe675dd8f7e6f4c83bb1f5028de97e.mp4
What if you set the height to the table?
https://i.gyazo.com/5c85bd3d157d41f6d8b038debc7f3028.mp4
I would like to get some kind of similar solution.
Some dependencies:
My component:
The text was updated successfully, but these errors were encountered: