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);
}
how can i set the contentHeight property without to change other properties setted by primefaces?Uncaught TypeError: Cannot set property 'contentHeight' of undefined