@xuda.io/runtime-bundle 1.0.872 → 1.0.874

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.
@@ -27869,12 +27869,19 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27869
27869
  // $div.css('height', 'unset');
27870
27870
  // }
27871
27871
 
27872
- const height = $div.data().xuData.viewport_height;
27873
- if (typeof height !== 'undefined') {
27874
- $div.css('height', 'unset');
27875
- } else {
27876
- $div.data().xuData.viewport_height = $div.height();
27877
- // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
27872
+ // const height = $div.data().xuData.viewport_height;
27873
+ // if (typeof height !== 'undefined') {
27874
+ // $div.css('height', 'unset');
27875
+ // } else {
27876
+ $div.data().xuData.viewport_height = $div.height();
27877
+ // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
27878
+ // }
27879
+
27880
+ // set initial default height for all children
27881
+ const container_id = $container.attr('xu-ui-id');
27882
+ if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(container_id)) {
27883
+ UI_WORKER_OBJ.viewport_height_set_ids.push(container_id);
27884
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $container, height: $div.height() }, null, null, paramsP.dsSessionP);
27878
27885
  }
27879
27886
  }
27880
27887
 
@@ -27883,12 +27890,12 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27883
27890
  set_viewport_height: async function () {
27884
27891
  const { $elm, height } = queue_obj?.paramsP || {};
27885
27892
 
27886
- $elm.data().xuData.viewport_height = $div.height();
27893
+ // $elm.data().xuData.viewport_height = $div.height();
27887
27894
 
27888
- $.each($elm.children(), function (key, elm) {
27895
+ $.each($container.children(), function (key, elm) {
27889
27896
  if (!$(elm)[0].style.height && !$(elm).children().length) {
27890
- $(elm).css('height', height).addClass('viewport_height');
27891
- $(elm).data().xuData.viewport_height = $div.height();
27897
+ $(elm).css('height', height); //.addClass('viewport_height');
27898
+ // $(elm).data().xuData.viewport_height = $div.height();
27892
27899
  }
27893
27900
  });
27894
27901
 
@@ -34523,6 +34530,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34523
34530
  return;
34524
34531
  }
34525
34532
 
34533
+ const height = $div.data().xuData.viewport_height;
34534
+ if (typeof height !== 'undefined') {
34535
+ $div.css('height', 'unset');
34536
+ }
34537
+
34526
34538
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
34527
34539
  $div.removeClass('skeleton');
34528
34540
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);