Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
ISAICP-5624: Fix double scrollbar on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-waat committed Dec 3, 2019
1 parent ae83f59 commit d4bffad
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/themes/joinup/joinup_theme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ libraries:
libraries-extend:
core/drupal.tableselect:
- joinup_theme/tableselect
oe_webtools_cookie_consent/oe_webtools_cookie_consent.cck:
- joinup_theme/cookie-extend

stylesheets-remove:
- core/themes/stable/css/core/vertical-tabs.css
Expand Down
7 changes: 7 additions & 0 deletions web/themes/joinup/joinup_theme.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@ shared_entity:
- core/jquery
- core/jquery.once
- core/drupal

cookie-extend:
version: VERSION
js:
js/cookie-extend.js: {}
dependencies:
- core/jquery
13 changes: 13 additions & 0 deletions web/themes/joinup/js/cookie-extend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* @file
* Cookie banner extended script.
*/

(function ($) {
// Add custom class if page has cookie banner.
$(window).bind("load", function() {
if (window.bannerDisplayed) {
$('body').addClass('has-cookie-consent-banner');
}
});
})(jQuery);
3 changes: 3 additions & 0 deletions web/themes/joinup/prototype/sass/_mdl-hacks.sass
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
.section--content
flex-grow: 1
flex-shrink: 0
body.has-cookie-consent-banner
.mdl-layout__container
height: auto

.filters
.mdl-menu__container
Expand Down

0 comments on commit d4bffad

Please sign in to comment.