targetj 1.0.177 → 1.0.178
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/App.js +0 -7
- package/build/LocationManager.js +0 -1
- package/build/TUtil.js +5 -4
- package/package.json +1 -1
package/build/App.js
CHANGED
|
@@ -66,13 +66,6 @@ var AppFn = function AppFn() {
|
|
|
66
66
|
}
|
|
67
67
|
return height;
|
|
68
68
|
},
|
|
69
|
-
height: function height() {
|
|
70
|
-
return this.getContentHeight();
|
|
71
|
-
},
|
|
72
|
-
width: function width() {
|
|
73
|
-
return this.getContentWidth();
|
|
74
|
-
},
|
|
75
|
-
coreTargets: ['width', 'height'],
|
|
76
69
|
initPageDom: function initPageDom() {
|
|
77
70
|
_DomInit.DomInit.initPageDoms(this.$dom);
|
|
78
71
|
if (queuedAppCall) {
|
package/build/LocationManager.js
CHANGED
|
@@ -73,7 +73,6 @@ var LocationManager = exports.LocationManager = /*#__PURE__*/function () {
|
|
|
73
73
|
key: "calculate",
|
|
74
74
|
value: function calculate() {
|
|
75
75
|
this.calculateContainer(_App.tApp.tRoot);
|
|
76
|
-
this.calculateCoreTargets(_App.tApp.tRoot);
|
|
77
76
|
}
|
|
78
77
|
}, {
|
|
79
78
|
key: "calculateActivated",
|
package/build/TUtil.js
CHANGED
|
@@ -40,10 +40,11 @@ var TUtil = exports.TUtil = /*#__PURE__*/function () {
|
|
|
40
40
|
child.visibilityStatus = {};
|
|
41
41
|
}
|
|
42
42
|
var status = child.visibilityStatus;
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
43
|
+
var validateInParent = child.validateVisibilityInParent() && parent !== (0, _App.tRoot)();
|
|
44
|
+
var parentX = validateInParent ? Math.max(domParent.absX, parent.absX) : 0;
|
|
45
|
+
var parentY = validateInParent ? Math.max(domParent.absY, parent.absY) : 0;
|
|
46
|
+
var parentWidth = validateInParent ? Math.min(domParent.getWidth(), parent.getWidth()) : (0, _App.getScreenWidth)();
|
|
47
|
+
var parentHeight = validateInParent ? Math.min(domParent.getHeight(), parent.getHeight()) : (0, _App.getScreenHeight)();
|
|
47
48
|
status.right = x <= parentX + parentWidth;
|
|
48
49
|
status.left = x + maxWidth >= parentX;
|
|
49
50
|
status.bottom = y - child.getTopMargin() <= parentY + parentHeight;
|
package/package.json
CHANGED