Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //when window size resize this functoin call ans set css
- $(window).resize(function () {
- var calendartitleheight = $("#departmenttable_headerfor_title thead").height();
- var calendartableheight = parseInt($("#DeparmentAbsence_calendar thead").height()) + parseInt(calendartitleheight);
- $("#DeparmentAbsence_username thead tr").css({ 'height': calendartableheight });
- var calendarUserlist_tr_height = $("#DeparmentAbsence_username tbody tr").height();
- $("#DeparmentAbsence_calendar tbody tr").css({ 'height': calendarUserlist_tr_height });
- var maindivWidth = $("#mainDiv").width();
- var userDiv = $("#div_department_usertable").width();
- var remainsWidth = parseInt(maindivWidth) - parseInt(userDiv);
- $("#div_department_calendartable").css({ 'width': remainsWidth });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement