-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Events are not properly positioned / sized when height is fixed #3157
Comments
We just ran into a problem with the height option as well. When we set the option to The I have moved back to 2.6.1 and this is not an issue there. Tested in 2.7.0 and 2.7.1 and it is broken in both of those releases. Not sure if this is completely related to @denniskoster's issue but it seems to be similar enough to post here. |
could you post a screenshot of what things look like in the badly-positioned state? could have to do w/ screen/browser size. things look fine on my end |
I can confirm that I'm getting the same results as @denniskoster (incorrectly positioned events) in both Chrome 50 and Firefox 46 on Windows 10. Removing .fc-time-grid .fc-slats {
position: absolute;
bottom: 0;
top: 0;
} from the custom CSS appears to fix the problem. |
@caseyjhol Thanks for the reply. You are correct, when removing that css events are positioned properly along the grid. However, there's not much point in making the calendar higher if the grid stays that height. |
Is what I pointed here unrelated to this issue? It seemed like it was at first but now I am getting the impression that maybe it isn't. Let me know if the PR helps with anything here, otherwise I can open a separate issue for what we experienced. |
@nickyoung87 I can't really tell if the two issues are related to be honest. Could you post a jsbin? |
@denniskoster Ok so I was writing up a JSBin of the problem and I couldn't actually reproduce it at first. I am working in a WordPress environment so I copied the theme CSS to see if that had an effect, and it ended up being the issue. I still think that there was some CSS removed in the 2.7.x versions of FC though that was helping with this. I narrowed down the issue to a line like this:
Now, being in WordPress, I did test this on several different themes, but the above piece of code is very common across all of these and created the issue in all of my tests. Since we are writing a plugin I can override this with our CSS, I am going to look at the recent changes in FC to see what else could have been removed that is causing this. Or maybe you have a guess @arshaw ? |
an even more minimal version of @denniskoster's recreation: this shortcoming will be solved when "evenly-expanding slots" is a feature that's officially supported (as opposed to CSS hacks): |
Hi,
When I have a fullCalendar instance with a fixed height and events loaded through the
events
option, the events aren't positioned / sized properly.Whenever I trigger a window resize, or add / edit an event, all events are repositioned / resized to what they should look like. I have created a js bin here: http://jsbin.com/sihabusagu/edit?html,css,js,output.
Cheers
The text was updated successfully, but these errors were encountered: