From fd030c038b5da1b677133d867c0f3eabbc960198 Mon Sep 17 00:00:00 2001 From: pkraker Date: Wed, 29 Jan 2020 20:06:44 +0100 Subject: [PATCH] Fixes an issue where bubble titles would not be dotted after zooming in and subsequent resize before zoom out --- vis/js/bubbles.js | 1 + vis/js/papers.js | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/vis/js/bubbles.js b/vis/js/bubbles.js index a1981fd13..b970fb10a 100644 --- a/vis/js/bubbles.js +++ b/vis/js/bubbles.js @@ -579,6 +579,7 @@ BubblesFSM.prototype = { }) .style("visibility", "visible"); + canvas.dotdotdotAreaTitles(); mediator.current_zoom_node = null; mediator.is_zoomed = false; diff --git a/vis/js/papers.js b/vis/js/papers.js index ca6b3d748..7466e6108 100644 --- a/vis/js/papers.js +++ b/vis/js/papers.js @@ -778,12 +778,6 @@ papers.onWindowResize = function() { $("#area_title>h2").css("font-size", canvas.calcTitleFontSize()); $("#area_title>h2").hyphenate(config.hyphenation_language); - area_title_objects.each(function() { - let margin_top = parseInt(d3.select(this).select("#area_title>h2").style("margin-top"), 10); - let margin_bottom = parseInt(d3.select(this).select("#area_title>h2").style("margin-bottom"), 10); - let maxHeight = d3.select(this).attr("height") - margin_top - margin_bottom; - shave(d3.select(this).select("#area_title>h2").node(), maxHeight); - }); d3.selectAll("g.paper") .attr("transform", (d) => {