@xuda.io/runtime-bundle 1.0.866 → 1.0.868

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.
@@ -8776,7 +8776,6 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8776
8776
  }
8777
8777
 
8778
8778
  if ($div.hasClass('viewport_height')) {
8779
- $div.addClass('viewport_height');
8780
8779
  $div.css('height', 'unset');
8781
8780
  }
8782
8781
  }
@@ -8791,6 +8790,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8791
8790
  $.each($elm.children(), function (key, elm) {
8792
8791
  if (!$(elm).height() && !$(elm).children()) {
8793
8792
  $(elm).css('height', height).addClass('viewport_height');
8793
+ $(elm).data().xuData.viewport_height = $div.height();
8794
8794
  }
8795
8795
  });
8796
8796
 
@@ -14862,6 +14862,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14862
14862
  if ($div.children().length) {
14863
14863
  UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14864
14864
  $div.empty();
14865
+ const height = $div.data().xuData.viewport_height;
14866
+ if (typeof height !== 'undefined') {
14867
+ $div.css('height', height);
14868
+ }
14865
14869
  }
14866
14870
  // $div.addClass('skeleton');
14867
14871
  observer_inViewport.observe($div[0]);
@@ -8777,7 +8777,6 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8777
8777
  }
8778
8778
 
8779
8779
  if ($div.hasClass('viewport_height')) {
8780
- $div.addClass('viewport_height');
8781
8780
  $div.css('height', 'unset');
8782
8781
  }
8783
8782
  }
@@ -8792,6 +8791,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8792
8791
  $.each($elm.children(), function (key, elm) {
8793
8792
  if (!$(elm).height() && !$(elm).children()) {
8794
8793
  $(elm).css('height', height).addClass('viewport_height');
8794
+ $(elm).data().xuData.viewport_height = $div.height();
8795
8795
  }
8796
8796
  });
8797
8797
 
@@ -12570,6 +12570,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12570
12570
  if ($div.children().length) {
12571
12571
  UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12572
12572
  $div.empty();
12573
+ const height = $div.data().xuData.viewport_height;
12574
+ if (typeof height !== 'undefined') {
12575
+ $div.css('height', height);
12576
+ }
12573
12577
  }
12574
12578
  // $div.addClass('skeleton');
12575
12579
  observer_inViewport.observe($div[0]);