Skip to content

Commit

Permalink
Fixes an issue where bubble titles would not be dotted after zooming …
Browse files Browse the repository at this point in the history
…in and subsequent resize before zoom out
  • Loading branch information
pkraker committed Jan 29, 2020
1 parent e0356c8 commit fd030c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions vis/js/bubbles.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ BubblesFSM.prototype = {
})
.style("visibility", "visible");

canvas.dotdotdotAreaTitles();
mediator.current_zoom_node = null;
mediator.is_zoomed = false;

Expand Down
6 changes: 0 additions & 6 deletions vis/js/papers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit fd030c0

Please sign in to comment.