Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chanlee committed Feb 4, 2016
1 parent 3db76d4 commit 487c654
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,26 +867,6 @@ Entry.EntryObject.prototype.initEntity = function(model) {
json.bgColor = options.background;
json.lineBreak = options.lineBreak;
if (options.lineBreak) {
/*
var lines = json.text.split('\n');
if (lines.length > 1) {
var maxLen = lines[0].length;
var maxHeight = lines.length;
for(var i=1,len=lines.length;i<len;i++) {
if (lines[i].length > maxLen) {
maxLen = lines[i].length;
}
}
if (maxLen > 20) maxLen= 20;
if (maxHeight > 3) maxHeight = 3;
json.width = 20 * maxLen;
json.height = 35 * maxHeight;
} else {
json.width = 20 * json.text.length;
json.height = 35;
}
*/
json.width = 256;
json.height = json.width * 0.5625;
json.regX = json.width / 2;
Expand Down

0 comments on commit 487c654

Please sign in to comment.