Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Vertical Sizing

$
0
0
Hi Cody,

Four (4!!) thoughts:
  1. STRAIGHT FORWARD: You're right, you were missing an entity selector (#) on the jQuery. Just in case you're wondering, on ServiceStudio should look something like "$('#" + CalendarContainer + "').fullcalendar('option', 'height', 700);
  2. THIS IS THE KILLER ONE: You need to remove the "contentHeight:400," that is being set on GeneralDisplayJSON parameter and that seems to be overriding the overal height definition.
  3. BONUS: You can also add a listener that tracks the exact widow height like:
    $(window).on('resize', function(){
    var win = $(this); //this = window
    $('.CalendarPlaceHolder').fullCalendar('option', 'height', win.height()-200); // adjust this to your case
    });
  4. EXTRA BONUS: FullCalendar API also offers a resize callback to adjust your calendar to a different view (switching to month view when there's enough space, switching to day, when you're very limited)
    $('#calendar').fullCalendar({
        windowResize: function(view) {
            alert('The calendar has adjusted to a window resize');
        }
    });
Let me know if this worked for you.

Kind Regards,
João Grazina


Viewing all articles
Browse latest Browse all 1476385

Trending Articles