Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-33110] Fixed regression in stage logs dialog + log sections …
…not expanded right when there are more than 15-20 steps in the same stage
  • Loading branch information
amuniz committed Apr 1, 2016
1 parent e99d804 commit f5a7cdb
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ui/src/main/js/view/stage-logs.js
Expand Up @@ -54,20 +54,12 @@ exports.render = function (stageDescription, onElement) {
var nodeLogFrame = nodeNameBar.parent();
var active = nodeLogFrame.hasClass('active');

// remove active state from all log frames
nodeLogFrames.removeClass('active');
nodeLogFrames.removeClass('inactive');

// add active state to the clicked log frame if was previously inactive
if (!active) {
nodeLogFrames.addClass('inactive');
nodeLogFrame.removeClass('inactive');
// Hide any other log box
nodeLogFrames.removeClass('active');
// Show this one
nodeLogFrame.addClass('active');

// set the height of the log-details window so it scrolls properly
var logDetails = $('.log-details', nodeLogFrame);
var position = logDetails.position();
logDetails.height(dialogHeight - header.outerHeight() - position.top - (parseFloat(stageLogsDom.css("border-bottom-width")) * 2));
}
});

Expand Down

0 comments on commit f5a7cdb

Please sign in to comment.