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

Header clipped when month has 6 lines of weeks #14

Open
tometzky opened this issue Feb 25, 2015 · 0 comments
Open

Header clipped when month has 6 lines of weeks #14

tometzky opened this issue Feb 25, 2015 · 0 comments

Comments

@tometzky
Copy link

On your demo page http://www.vissit.com/projects/eventCalendar/ when you switch month to 2015-03, which start on Sunday, and therefore has 6 lines of weeks, an expected header "March events:" is clipped.

This is caused by this line in your Javascript:

$eventsCalendarSlider.css('height',$eventsCalendarMonthWrap.height()+'px');

This does not work because in Javascript there's delay after changing element dimensions and before they're visible to code.

I've resolved this problem on my page http://www.ngofund.org.pl/spotkania-i-warsztaty/ by using
.eventsCalendar-monthWrap { position: static; }
.eventsCalendar-list-wrap { clear:both; padding-top: 5px; }

Which eliminate a need to set .eventsCalendar-slider size with Javascript.

This problem is also visible on 4 week-lines months, like 2010-02, but to a much lesser extent - there's only too much margin after .eventsCalendar-monthWrap.

PS.
Thanks for your plugin - this is a decent, very simple and easy to use calendar. The best I have found. I'm reporting some issues with it, but it just means I want to help you make it even better.

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