CC-2484:Calendar sholdn't move down
- the fix was fairly easy. so I did complete fix.
This commit is contained in:
parent
c0b95f583a
commit
48537c3c10
4 changed files with 18 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue