From f73abfd2bc4ae2bb66d6c60cb893d6bbaabeb9e8 Mon Sep 17 00:00:00 2001 From: Chisu Yu Date: Mon, 1 Apr 2013 01:41:02 +0000 Subject: [PATCH] =?UTF-8?q?[=EC=9C=A0=EC=B9=98=EC=88=98]=20[NOBTS]=20?= =?UTF-8?q?=EC=84=9C=EB=B2=84=20=EA=B7=B8=EB=9E=98=ED=94=84=20=EB=84=88?= =?UTF-8?q?=EB=B9=84=EB=A5=BC=20=EA=B0=80=EB=B3=80=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@1371 84d0f5b1-2673-498c-a247-62c4ff18d310 --- src/main/webapp/common/js/hippo/chart-springy.js | 6 +++--- src/main/webapp/common/js/hippo/servermap/hippoServerMap.js | 2 +- src/main/webapp/index2.html | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) 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 @@
+ +