Skip to content

Commit

Permalink
Incorrect formatting on multiline text wrapping cytoscape#1503
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Aug 23, 2016
1 parent 75a1581 commit 8839904
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/extensions/renderer/canvas/drawing-label-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,10 @@ CRp.drawText = function( context, ele, prefix ){
case 'top':
textY -= ( lines.length - 1 ) * lineHeight;
break;

case 'center':
case 'bottom':
// nothing required
textY -= ( lines.length - 1 ) * lineHeight;
break;

default:
case 'center':
textY -= ( lines.length - 1 ) * lineHeight / 2;
}

for( var l = 0; l < lines.length; l++ ){
Expand Down

0 comments on commit 8839904

Please sign in to comment.