Skip to content

Commit

Permalink
Prevent the body from scrolling while the console is out
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Oct 23, 2013
1 parent da7131f commit b5cd3e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hawtio-web/src/main/webapp/app/core/js/corePlugin.ts
Expand Up @@ -418,12 +418,19 @@ angular.module('hawtioCore', ['bootstrap', 'ngResource', 'ui', 'ui.bootstrap.dia
link: ($scope, $element, $attr) => {
$element.click(() => {
var log = $("#log-panel");
var body = $('body');
if (log.height() !== 0) {
localStorage['showLog'] = 'false';
log.css({'bottom': '110%'});
body.css({
'overflow-y': 'auto'
});
} else {
localStorage['showLog'] = 'true';
log.css({'bottom': '50%'});
body.css({
'overflow-y': 'hidden'
});
}
return false;
});
Expand Down

0 comments on commit b5cd3e8

Please sign in to comment.