CC-2484:Calendar sholdn't move down

- the fix was fairly easy. so I did complete fix.
This commit is contained in:
james 2011-06-30 12:15:54 -04:00
parent c0b95f583a
commit 48537c3c10
4 changed files with 18 additions and 5 deletions

View file

@ -423,6 +423,15 @@ $(document).ready(function() {
//setAddShowEvents();
});
$(window).resize(function(){
var windowWidth = $(this).width();
// margin on showform are 16 px on each side
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 6))/windowWidth*100);
var widthPercent = parseInt(calendarWidth)+"%";
$("#schedule_calendar").css("width", widthPercent);
$("#schedule_calendar").fullCalendar('render');
});
$(window).load(function() {
setAddShowEvents();