adaptable-text
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -73,3 +73,3 @@ (function (global, factory) { | ||
value: function setWidth() { | ||
this.width = this.element.getBoundingClientRect().width || this.options.width; | ||
this.width = this.options.width || this.element.getBoundingClientRect().width; | ||
} | ||
@@ -76,0 +76,0 @@ }, { |
@@ -67,3 +67,3 @@ import clamp from 'clamp'; | ||
value: function setWidth() { | ||
this.width = this.element.getBoundingClientRect().width || this.options.width; | ||
this.width = this.options.width || this.element.getBoundingClientRect().width; | ||
} | ||
@@ -70,0 +70,0 @@ }, { |
{ | ||
"name": "adaptable-text", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Adapt font size to a specified width.", | ||
@@ -5,0 +5,0 @@ "main": "lib/adaptable-text.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
21120
12