@eclipse-scout/core 22.0.26 → 22.0.29

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/dist/file-list CHANGED
@@ -1,5 +1,5 @@
1
- eclipse-scout-core-a56958ac9954d00cc62a.min.js
2
- eclipse-scout-core-a56958ac9954d00cc62a.min.js.map
1
+ eclipse-scout-core-111d2d090dfd2183238f.min.js
2
+ eclipse-scout-core-111d2d090dfd2183238f.min.js.map
3
3
  eclipse-scout-core-theme-dark-fd0e080c10f65e67b68b.min.css
4
4
  eclipse-scout-core-theme-dark.css
5
5
  eclipse-scout-core-theme-dark.css.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-scout/core",
3
- "version": "22.0.26",
3
+ "version": "22.0.29",
4
4
  "description": "Eclipse Scout runtime",
5
5
  "author": "BSI Business Systems Integration AG",
6
6
  "homepage": "https://www.eclipse.org/scout",
@@ -26,12 +26,12 @@
26
26
  "src"
27
27
  ],
28
28
  "devDependencies": {
29
- "@eclipse-scout/cli": "22.0.26",
29
+ "@eclipse-scout/cli": "22.0.29",
30
30
  "@eclipse-scout/releng": "^22.0.0",
31
31
  "jasmine-core": "3.10.1",
32
32
  "jasmine-ajax": "4.0.0",
33
33
  "jasmine-jquery": "2.1.1",
34
- "karma": "6.3.9"
34
+ "karma": "6.3.20"
35
35
  },
36
36
  "dependencies": {
37
37
  "jquery": "3.6.0",
package/src/tree/Tree.js CHANGED
@@ -398,7 +398,7 @@ export default class Tree extends Widget {
398
398
  this.scrollToSelection = false;
399
399
  let scrollTop = this.$data[0].scrollTop;
400
400
  let scrollLeft = this.$data[0].scrollLeft;
401
- if (this.scrollTop !== scrollTop) {
401
+ if (this.scrollTop !== scrollTop && this.rendered) {
402
402
  this._renderViewport();
403
403
  }
404
404
  this.scrollTop = scrollTop;
@@ -1915,9 +1915,7 @@ export default class Tree extends Widget {
1915
1915
  _addToVisibleFlatListNoCheck(node, insertIndex, animatedRendering) {
1916
1916
  arrays.insert(this.visibleNodesFlat, node, insertIndex);
1917
1917
  this.visibleNodesMap[node.id] = true;
1918
- if (this.rendered) {
1919
- this.showNode(node, animatedRendering, insertIndex);
1920
- }
1918
+ this.showNode(node, animatedRendering, insertIndex);
1921
1919
  }
1922
1920
 
1923
1921
  scrollTo(node, options) {
@@ -2154,10 +2152,16 @@ export default class Tree extends Widget {
2154
2152
  }
2155
2153
  }
2156
2154
 
2155
+ /**
2156
+ * @param {TreeNode} [parentNode]
2157
+ */
2157
2158
  insertNode(node, parentNode) {
2158
2159
  this.insertNodes([node], parentNode);
2159
2160
  }
2160
2161
 
2162
+ /**
2163
+ * @param {TreeNode} [parentNode]
2164
+ */
2161
2165
  insertNodes(nodes, parentNode) {
2162
2166
  nodes = arrays.ensure(nodes).slice();
2163
2167
  if (nodes.length === 0) {
@@ -3023,7 +3027,7 @@ export default class Tree extends Widget {
3023
3027
  }
3024
3028
 
3025
3029
  hideNode(node, useAnimation, suppressDetachHandling) {
3026
- if (!node.attached) {
3030
+ if (!this.rendered || !node.attached) {
3027
3031
  return;
3028
3032
  }
3029
3033
  this.viewRangeDirty = true;