Skip to content

Commit

Permalink
Merge pull request mozilla#7453 from simoncpu/master
Browse files Browse the repository at this point in the history
Expose the text widget's maximum length.
  • Loading branch information
timvandermeij authored Jul 6, 2016
2 parents 10cd37c + d872fc9 commit b6826a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
WidgetAnnotation.call(this, params);

this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
this.data.maxLen = Util.getInheritableProperty(params.dict, 'MaxLen');
}

Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
Expand Down

0 comments on commit b6826a4

Please sign in to comment.