Browse Source

restored default width and height to 100%

flowchartTest
Alex de Mulder 9 years ago
parent
commit
3d29ba586f
3 changed files with 5031 additions and 5032 deletions
  1. +5026
    -5026
      dist/vis.js
  2. +3
    -4
      examples/network/01_basic_usage.html
  3. +2
    -2
      lib/network/modules/Canvas.js

+ 5026
- 5026
dist/vis.js
File diff suppressed because it is too large
View File


+ 3
- 4
examples/network/01_basic_usage.html View File

@ -11,15 +11,14 @@
width: 600px; width: 600px;
height: 400px; height: 400px;
border: 1px solid lightgray; border: 1px solid lightgray;
display:none;
} }
</style> </style>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head>
<body> <body>
<div id="mynetwork"></div> <div id="mynetwork"></div>
<!--<input type="button" onclick="document.getElementById('mynetwork').style.display='block';" value="showdiv">-->
<input type="button" onclick="document.getElementById('mynetwork').style.display='block'; network.view.zoomExtent({duration:0});" value="showdiv">
<script type="text/javascript"> <script type="text/javascript">
// create an array with nodes // create an array with nodes
var nodes = [ var nodes = [
@ -47,7 +46,7 @@
edges: edges edges: edges
}; };
var options = { var options = {
configure: 'nodes',
// configure: 'nodes',
// physics:{stabilization:true} // physics:{stabilization:true}
nodes:{color:'red'} nodes:{color:'red'}
} }

+ 2
- 2
lib/network/modules/Canvas.js View File

@ -16,8 +16,8 @@ class Canvas {
this.options = {}; this.options = {};
this.defaultOptions = { this.defaultOptions = {
width:'600px',
height:'400px'
width:'100%',
height:'100%'
} }
util.extend(this.options, this.defaultOptions); util.extend(this.options, this.defaultOptions);

Loading…
Cancel
Save