Skip to content

Commit

Permalink
Prepare 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Wessel committed Mar 23, 2017
1 parent 96d7a42 commit 9c9fac3
Show file tree
Hide file tree
Showing 3 changed files with 4,047 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-textfit",
"version": "0.1.8",
"version": "0.1.9",
"description": "React component to fit headlines and paragraphs into any element",
"main": "lib/index.js",
"scripts": {
Expand Down
18 changes: 17 additions & 1 deletion src/Textfit.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,23 @@ export default createClass({
},

render() {
const { children, text, style, min, max, mode, forceWidth, forceSingleModeWidth, perfectFit, throttle, autoResize, onReady, ...props } = this.props;
const {
children,
text,
style,
min,
max,
mode,
forceWidth,
forceSingleModeWidth,
perfectFit,
/* eslint-disable no-shadow */
throttle,
/* eslint-enable no-shadow */
autoResize,
onReady,
...props
} = this.props;
const { fontSize, ready } = this.state;
const finalStyle = {
...style,
Expand Down
Loading

0 comments on commit 9c9fac3

Please sign in to comment.