Comparing version 1.1.0 to 1.1.1
@@ -20,3 +20,3 @@ (function (root, factory) { | ||
span.style.visibility = 'hidden'; | ||
span.style.position = 'absolute'; | ||
span.style.position = 'fixed'; | ||
span.style.top = '99999999px'; | ||
@@ -84,4 +84,5 @@ | ||
this.items = []; | ||
this.spacing = options.spacing || 0; | ||
this.setSpacing(options.spacing); | ||
if (options.items && options.items.length) { | ||
@@ -88,0 +89,0 @@ var self = this; |
{ | ||
"name": "flex-text", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Mastering font-size like flexbox!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,3 +63,3 @@ # flex-text | ||
### new FlexText(options: object) | ||
### new FlexText([options: object]) | ||
@@ -72,2 +72,4 @@ Construct new instance with supported options: | ||
You can set container later by calling `instance#attachTo()` | ||
#### spacing: number | ||
@@ -100,2 +102,6 @@ | ||
### instance#attachTo(container: element) | ||
Set the container element. | ||
### instance#addItem(item: object) | ||
@@ -102,0 +108,0 @@ |
1027999
123