Don't expand the header if only reveals white space

This commit is contained in:
Jonas De Taeye
2016-03-13 21:19:55 +01:00
parent de8480f168
commit fccd52e442
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ header {
overflow: hidden;
}
header:hover {
header.header-expand {
max-height: 1000px;
}
+10 -1
View File
@@ -21,7 +21,16 @@ Zepto(function($) {
var $activeLine = $frameContainer.find('.frame.active');
var $activeFrame = $container.find('.frame-code.active');
var $ajaxEditors = $('.editor-link[data-ajax]');
var headerHeight = $('header').height();
var $header = $('header');
$header.on('mouseenter', function () {
if ($header.find('.exception').height() >= 145) {
$header.addClass('header-expand');
}
});
$header.on('mouseleave', function () {
$header.removeClass('header-expand');
});
var highlightCurrentLine = function() {
// Highlight the active and neighboring lines for this frame: