Skip to content

Commit

Permalink
Readded widht and height check
Browse files Browse the repository at this point in the history
  • Loading branch information
Protoss78 committed May 27, 2017
1 parent 76589bf commit c28ed3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textfit-div.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@
return;
if (this.$.fitMe.innerHTML.length < 1)
return;
/*if (this.$.fitMe.clientHeight <= 0 || this.$.fitMe.clientWidth <= 0) {
if (this.$.fitMe.clientHeight <= 0 || this.$.fitMe.clientWidth <= 0) {
console.debug('textfit-div has no size yet, therefore the text can not be fitted.');
return;
}*/
}
try {
textFit(this.$.fitMe, {
alignHoriz: this.horizontalCenter,
Expand Down

0 comments on commit c28ed3d

Please sign in to comment.