diff --git a/frontend/src/Metamaps/JIT.js b/frontend/src/Metamaps/JIT.js index 3520b946..d4184e78 100644 --- a/frontend/src/Metamaps/JIT.js +++ b/frontend/src/Metamaps/JIT.js @@ -228,7 +228,7 @@ const JIT = { ctx.fillStyle = '#FFF' ctx.textBaseline = 'alphabetic' - const arrayOfLabelLines = Util.splitLine(desc, 25).split('\n') + const arrayOfLabelLines = Util.splitLine(desc, 27).split('\n') let lineWidths = [] for (let index = 0; index < arrayOfLabelLines.length; ++index) { lineWidths.push(ctx.measureText(arrayOfLabelLines[index]).width) @@ -497,7 +497,7 @@ const JIT = { 'contains': function(node, pos) { const npos = node.pos.getc(true) const dim = node.getData('dim') - const arrayOfLabelLines = Util.splitLine(node.name, 25).split('\n') + const arrayOfLabelLines = Util.splitLine(node.name, 27).split('\n') const ctx = Visualize.mGraph.canvas.getCtx() const height = 25 * arrayOfLabelLines.length @@ -1930,7 +1930,7 @@ const JIT = { minY = y } - let arrayOfLabelLines = Util.splitLine(n.name, 25).split('\n') + let arrayOfLabelLines = Util.splitLine(n.name, 27).split('\n') let dim = n.getData('dim') let ctx = canvas.getCtx() diff --git a/frontend/src/patched/JIT.js b/frontend/src/patched/JIT.js index e780604e..8305da61 100644 --- a/frontend/src/patched/JIT.js +++ b/frontend/src/patched/JIT.js @@ -7580,7 +7580,7 @@ Graph.Label.Native = new Class({ //START METAMAPS CODE - var arrayOfLabelLines = Metamaps.Util.splitLine(node.name, 25).split('\n'); + var arrayOfLabelLines = Metamaps.Util.splitLine(node.name, 27).split('\n'); //render background ctx.fillStyle = ctx.strokeStyle = Metamaps.Settings.colors.labels.background; ctx.lineWidth = 2;