Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var heightWindow = $wnd.$($wnd).height();
- var navbar = $wnd.$('.js-navbar');
- if (navbar) {
- var heightNavbar = navbar.height();
- var heightMainArea = heightWindow - heightNavbar;
- $wnd.$('.js-height-no-header') && $wnd.$('.js-height-no-header').height(heightMainArea + 'px');
- var title = $wnd.$('.js-sidebar-title');
- if (title) {
- var heightPageTitle = title.height();
- $wnd.$('.js-list-master-contour') && $wnd.$('.js-list-master-contour').height((heightMainArea - heightPageTitle) + 'px');
- }
- var popupHeader = $wnd.$('.js-sidebar-popup-header');
- var popupBottom = $wnd.$('.js-sidebar-popup-bottom');
- if (popupHeader && popupBottom) {
- var sidebarPopupHeader = popupHeader.height();
- var sidebarPopupBottom = popupBottom.height();
- $wnd.$('.js-list-master-contour-with-bottom') && $wnd.$('.js-list-master-contour-with-bottom').height
- ((heightMainArea - sidebarPopupHeader - sidebarPopupBottom) + 'px');
- }
- var header = $wnd.$('.js-content-full-header');
- if (header) {
- var heightContentFullHeader = header.height();
- $wnd.$('.js-content-full-body') && $wnd.$('.js-content-full-body').height((heightMainArea -
- heightContentFullHeader) + "px");
- $wnd.$('.js-users-table') && $wnd.$('.js-users-table').css("max-height",
- (heightMainArea - heightContentFullHeader) + "px");
- $wnd.$('.js-object-detail') && $wnd.$('.js-object-detail').height((heightMainArea -
- heightContentFullHeader) + "px");
- $wnd.$('.js-sidebar-object-list') && $wnd.$('.js-sidebar-object-list').height((heightMainArea -
- heightContentFullHeader) + "px");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement