Advertisement
afterlife88

Untitled

Sep 2nd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             //when window size resize this functoin call ans set css
  2.             $(window).resize(function () {
  3.               var calendartitleheight = $("#departmenttable_headerfor_title thead").height();
  4.               var calendartableheight = parseInt($("#DeparmentAbsence_calendar thead").height()) + parseInt(calendartitleheight);
  5.               $("#DeparmentAbsence_username thead tr").css({ 'height': calendartableheight });
  6.               var calendarUserlist_tr_height = $("#DeparmentAbsence_username tbody tr").height();
  7.               $("#DeparmentAbsence_calendar tbody tr").css({ 'height': calendarUserlist_tr_height });
  8.               var maindivWidth = $("#mainDiv").width();
  9.               var userDiv = $("#div_department_usertable").width();
  10.               var remainsWidth = parseInt(maindivWidth) - parseInt(userDiv);
  11.               $("#div_department_calendartable").css({ 'width': remainsWidth });
  12.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement