Set Schedule height

UI Components for JSF
Post Reply
markusg80
Posts: 69
Joined: 21 Nov 2013, 17:11

15 Aug 2018, 14:21

I'm working on setting the height of Schedule Component. i used the extender function as follows:

Code: Select all

function resizeExmanSchedule() {
    var windowsHeight = $(window).height();
    var topPanelHeight = $( '.topbar-right' ).outerHeight();
    var controlsHeight = $('#timeform\\:timegrid').outerHeight();
    var tabNavHeight = $('#timeform\\:timetab .ui-tabs-nav').outerHeight();
    
    var scheduleHeight = windowsHeight - topPanelHeight - controlsHeight - tabNavHeight - 90;
    
    if (scheduleHeight < 400) {
        scheduleHeight = 400;
    }
    this.cfg.contentHeight = scheduleHeight;
    console.log(this);
}
this basicly works and set the heigt of the schedule component. But it only always fires Exceptions like this:
Uncaught TypeError: Cannot set property 'contentHeight' of undefined
how can i set the contentHeight property without to change other properties setted by primefaces?
PrimeFaces 12.0.0,Mojarra 4.0.0,Payara 6

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests