Commit f7ec9c81 authored by Yaroslav Lushnikov's avatar Yaroslav Lushnikov 🦆

Add a max height to the image block

parent bf1bb767
......@@ -39,7 +39,8 @@
$('#sidebar, #header').click(closePopin);
$(document).keyup(function(event) {if (event.keyCode === 27) closePopin()});
var workflowBlock = $('<div class="workflow-image" style="float: right">'
var maxHeight = $('.attributes').height() + $('.author').height();
var workflowBlock = $('<div class="workflow-image" style="float: right; height: ' + maxHeight +'px; overflow: hidden">'
+ '<p><strong>Workflow</strong></p>'
+ '<img src="' + trackerData.image +'" width="200px">'
+ '</div>');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment