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 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) {
@@ -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 parentX = child.validateVisibilityInParent() ? Math.max(domParent.absX, parent.absX) : 0;
44
- var parentY = child.validateVisibilityInParent() ? Math.max(domParent.absY, parent.absY) : 0;
45
- var parentWidth = child.validateVisibilityInParent() ? Math.min(domParent.getWidth(), parent.getWidth()) : (0, _App.getScreenWidth)();
46
- var parentHeight = child.validateVisibilityInParent() ? Math.min(domParent.getHeight(), parent.getHeight()) : (0, _App.getScreenHeight)();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targetj",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
4
4
  "description": "TargetJS is a JavaScript framework designed for creating animated and efficient web user interfaces.",
5
5
  "keywords": ["targetjs"],
6
6
  "main": "Export.js",