mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-15 15:55:54 +10:00
[유치수] [NOBTS] 서버 그래프 너비를 가변적으로 변경.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@1371 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -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)*/;
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user