[유치수] [NOBTS] 서버 그래프 너비를 가변적으로 변경.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@1371 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2013-04-01 01:41:02 +00:00
parent 7c77314194
commit f73abfd2bc
3 changed files with 7 additions and 4 deletions
@@ -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',
@@ -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)*/;
+3
View File
@@ -187,7 +187,10 @@
<div class="row-fluid">
<div class="span9">
<div class="indicator"><img src="/common/images/ajaxloader.gif"/></div>
<!--
<div id="springygraph" style="width:1250px;height:700px;border:1px solid #DDDDDD;overflow:hidden;position:relative;display:none;"></div>
-->
<div id="springygraph" style="height:700px;border:1px solid #DDDDDD;overflow:hidden;position:relative;display:none;"></div>
</div>
<div class="span3">
<ul class="nav nav-tabs" id="transactionTabs">