.width() returned wrong result in firefox, causing the map to load with off dimensions
This commit is contained in:
parent
531f09c6d3
commit
9ed0d412df
1 changed files with 2 additions and 2 deletions
|
@ -1654,8 +1654,8 @@ Metamaps.Visualize = {
|
|||
$jit.ForceDirected.Plot.NodeTypes.implement(Metamaps.JIT.ForceDirected.nodeSettings);
|
||||
$jit.ForceDirected.Plot.EdgeTypes.implement(Metamaps.JIT.ForceDirected.edgeSettings);
|
||||
|
||||
FDSettings.width = $(document).width();
|
||||
FDSettings.height = $(document).height();
|
||||
FDSettings.width = $('body').width();
|
||||
FDSettings.height = $('body').height();
|
||||
|
||||
self.mGraph = new $jit.ForceDirected(FDSettings);
|
||||
|
||||
|
|
Loading…
Reference in a new issue