in hive/scaladocs/lib/diagrams.js [190:217]
$(".diagram-container").each(function() {
// unregister click event on whole div
$(".diagram", this).unbind("click");
var diagramWidth = $(".diagram", this).data("width");
var diagramHeight = $(".diagram", this).data("height");
if(diagramWidth > availableWidth)
{
// resize diagram
var height = diagramHeight / diagramWidth * availableWidth;
$(".diagram svg", this).width(availableWidth);
$(".diagram svg", this).height(height);
// register click event on whole div
$(".diagram", this).click(function() {
diagrams.popup($(this));
});
$(".diagram", this).addClass("magnifying");
}
else
{
// restore full size of diagram
$(".diagram svg", this).width(diagramWidth);
$(".diagram svg", this).height(diagramHeight);
// don't show custom cursor any more
$(".diagram", this).removeClass("magnifying");
}
});