From 9ed0d412df3045114f795aa9b2f0fa6864ff2e24 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 1 Feb 2015 11:50:22 -0500 Subject: [PATCH] .width() returned wrong result in firefox, causing the map to load with off dimensions --- app/assets/javascripts/src/Metamaps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/src/Metamaps.js b/app/assets/javascripts/src/Metamaps.js index c0ccc638..37614179 100644 --- a/app/assets/javascripts/src/Metamaps.js +++ b/app/assets/javascripts/src/Metamaps.js @@ -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);