Skip to content

Commit

Permalink
* fix a error
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaJiaJiang committed Mar 6, 2017
1 parent 189a95a commit 57c1992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Expand Up @@ -244,7 +244,7 @@
var multiLineText=new col.class.TextGraph('poi\npoipoi\npoipoipoi');
multiLineText.style.x=810;
multiLineText.style.y=500;
multiLineText.font.textAlign='right';
multiLineText.font.textAlign='center';
col.root.appendChild(multiLineText);


Expand Down
2 changes: 1 addition & 1 deletion src/CanvasObjLibrary.js
Expand Up @@ -842,7 +842,7 @@ varsion:2.0
case 'center':{
x=this.style.width/2;break;
}
case 'right':case 'right':{
case 'right':case 'end':{
x=this.style.width;
}
}
Expand Down

0 comments on commit 57c1992

Please sign in to comment.