targetj 1.0.226 → 1.0.227
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.
- package/build/TModelUtil.js +2 -0
- package/build/Viewport.js +2 -1
- package/dist/targetjs.js +1 -1
- package/dist/targetjs.js.gz +0 -0
- package/package.json +1 -1
package/build/TModelUtil.js
CHANGED
|
@@ -217,6 +217,7 @@ var TModelUtil = exports.TModelUtil = /*#__PURE__*/function () {
|
|
|
217
217
|
if (width > 0 || width === 0 && child.lastVal('width') > 0) {
|
|
218
218
|
child.addToStyleTargetList('width');
|
|
219
219
|
}
|
|
220
|
+
child.markLayoutDirty('width');
|
|
220
221
|
(0, _App.getRunScheduler)().schedule(15, 'resize');
|
|
221
222
|
}
|
|
222
223
|
}
|
|
@@ -239,6 +240,7 @@ var TModelUtil = exports.TModelUtil = /*#__PURE__*/function () {
|
|
|
239
240
|
if (height > 0 || height === 0 && child.lastVal('height') > 0) {
|
|
240
241
|
child.addToStyleTargetList('height');
|
|
241
242
|
}
|
|
243
|
+
child.markLayoutDirty('height');
|
|
242
244
|
(0, _App.getRunScheduler)().schedule(15, 'resize');
|
|
243
245
|
}
|
|
244
246
|
}
|
package/build/Viewport.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Viewport = void 0;
|
|
7
|
+
var _TModelUtil = require("./TModelUtil.js");
|
|
7
8
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
9
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
10
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
@@ -130,7 +131,7 @@ var Viewport = exports.Viewport = /*#__PURE__*/function () {
|
|
|
130
131
|
var scale = child.getMeasuringScale();
|
|
131
132
|
var topBaseHeight = child.getTopBaseHeight() * scale;
|
|
132
133
|
var maxHeight = child.getHeight() * scale + this.currentChild.getTopMargin() + this.currentChild.getBottomMargin();
|
|
133
|
-
var maxWidth = child.getItemOverflowMode() === 'always' ? this.container.getWidth() : child.getBaseWidth() * scale + this.currentChild.getLeftMargin() + this.currentChild.getRightMargin();
|
|
134
|
+
var maxWidth = child.getItemOverflowMode() === 'always' && _TModelUtil.TModelUtil.isWidthDefined(this.container) ? this.container.getWidth() : child.getBaseWidth() * scale + this.currentChild.getLeftMargin() + this.currentChild.getRightMargin();
|
|
134
135
|
if (child.type !== 'BI' && this.container.type === 'BI') {
|
|
135
136
|
var layout = this.computeBoundary(child, 'layout');
|
|
136
137
|
var animated = this.computeBoundary(child, 'animated');
|