diff --git a/src/main/webapp/common/js/hippo/chart-springy.js b/src/main/webapp/common/js/hippo/chart-springy.js index 0cebae3d5..abf0892a8 100644 --- a/src/main/webapp/common/js/hippo/chart-springy.js +++ b/src/main/webapp/common/js/hippo/chart-springy.js @@ -10,8 +10,8 @@ function getRandom(M, N){ } function drawSpringy(graphdata, targetId, width, height) { - $(targetId).attr("width", width); - $(targetId).attr("height", height); + // $(targetId).attr("width", width); + // $(targetId).attr("height", height); var graph = new Graph(); @@ -95,7 +95,7 @@ function drawSpringy(graphdata, targetId, width, height) { 'height' : $(window).height() }); } - resize(); + // resize(); var springy = jQuery(targetId).hippoServerMap({ graph: graph, sEdgeColor : '#8f8f8f', diff --git a/src/main/webapp/common/js/hippo/servermap/hippoServerMap.js b/src/main/webapp/common/js/hippo/servermap/hippoServerMap.js index 40aa8a8b4..59679dbaf 100644 --- a/src/main/webapp/common/js/hippo/servermap/hippoServerMap.js +++ b/src/main/webapp/common/js/hippo/servermap/hippoServerMap.js @@ -31,7 +31,7 @@ jQuery.fn.hippoServerMap = function(params) { var iconPath = params.iconPath || '/images/servermap'; //var canvas = this[0]; - var nThisWidth = $(this).width(), + var nThisWidth = $(this).parent().width(), // $(this).width(), nThisHeight = $(this).height(); var canvas = document.createElement('canvas'); canvas.width = nThisWidth /** (1 + params.graph.nodes.length / 100)*/; diff --git a/src/main/webapp/index2.html b/src/main/webapp/index2.html index 5621e0e8c..cb9ca47d9 100644 --- a/src/main/webapp/index2.html +++ b/src/main/webapp/index2.html @@ -187,7 +187,10 @@
