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();
|
||||
|
|
|
@ -13,7 +13,11 @@ function openAddShowForm() {
|
|||
if($("#add-show-form").length == 1) {
|
||||
if( ($("#add-show-form").css('display')=='none')) {
|
||||
$("#add-show-form").show();
|
||||
$("#schedule_calendar").css("width", "70%");
|
||||
var windowWidth = $(window).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');
|
||||
}
|
||||
$("#schedule-show-what").show(0, function(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue