@flashist/flibs 0.0.101 → 0.0.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,13 +154,13 @@ var FLabel = /** @class */ (function (_super) {
154
154
  if (!this.autosizeType || this.autosizeType === AutosizeType.BOTH || this.autosizeType === AutosizeType.WIDTH) {
155
155
  this._width = this.field.width + (this.fieldPaddingX * 2);
156
156
  if (this.maxAutosizeWidth) {
157
- this._width = Math.max(this._width, this.maxAutosizeWidth);
157
+ this._width = Math.min(this._width, this.maxAutosizeWidth);
158
158
  }
159
159
  }
160
160
  if (!this.autosizeType || this.autosizeType === AutosizeType.BOTH || this.autosizeType === AutosizeType.HEIGHT) {
161
161
  this._height = this.field.height + (this.fieldPaddingY * 2);
162
162
  if (this.maxAutosizeHeight) {
163
- this._width = Math.max(this._height, this.maxAutosizeHeight);
163
+ this._width = Math.min(this._height, this.maxAutosizeHeight);
164
164
  }
165
165
  }
166
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashist/flibs",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
4
4
  "scripts": {
5
5
  "build": "gulp",
6
6
  "publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",