@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.
@@ -8779,12 +8779,19 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8779
8779
  // $div.css('height', 'unset');
8780
8780
  // }
8781
8781
 
8782
- const height = $div.data().xuData.viewport_height;
8783
- if (typeof height !== 'undefined') {
8784
- $div.css('height', 'unset');
8785
- } else {
8786
- $div.data().xuData.viewport_height = $div.height();
8787
- // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8782
+ // const height = $div.data().xuData.viewport_height;
8783
+ // if (typeof height !== 'undefined') {
8784
+ // $div.css('height', 'unset');
8785
+ // } else {
8786
+ $div.data().xuData.viewport_height = $div.height();
8787
+ // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8788
+ // }
8789
+
8790
+ // set initial default height for all children
8791
+ const container_id = $container.attr('xu-ui-id');
8792
+ if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(container_id)) {
8793
+ UI_WORKER_OBJ.viewport_height_set_ids.push(container_id);
8794
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $container, height: $div.height() }, null, null, paramsP.dsSessionP);
8788
8795
  }
8789
8796
  }
8790
8797
 
@@ -8793,12 +8800,12 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8793
8800
  set_viewport_height: async function () {
8794
8801
  const { $elm, height } = queue_obj?.paramsP || {};
8795
8802
 
8796
- $elm.data().xuData.viewport_height = $div.height();
8803
+ // $elm.data().xuData.viewport_height = $div.height();
8797
8804
 
8798
- $.each($elm.children(), function (key, elm) {
8805
+ $.each($container.children(), function (key, elm) {
8799
8806
  if (!$(elm)[0].style.height && !$(elm).children().length) {
8800
- $(elm).css('height', height).addClass('viewport_height');
8801
- $(elm).data().xuData.viewport_height = $div.height();
8807
+ $(elm).css('height', height); //.addClass('viewport_height');
8808
+ // $(elm).data().xuData.viewport_height = $div.height();
8802
8809
  }
8803
8810
  });
8804
8811
 
@@ -14856,6 +14863,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14856
14863
  return;
14857
14864
  }
14858
14865
 
14866
+ const height = $div.data().xuData.viewport_height;
14867
+ if (typeof height !== 'undefined') {
14868
+ $div.css('height', 'unset');
14869
+ }
14870
+
14859
14871
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
14860
14872
  $div.removeClass('skeleton');
14861
14873
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
@@ -8780,12 +8780,19 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8780
8780
  // $div.css('height', 'unset');
8781
8781
  // }
8782
8782
 
8783
- const height = $div.data().xuData.viewport_height;
8784
- if (typeof height !== 'undefined') {
8785
- $div.css('height', 'unset');
8786
- } else {
8787
- $div.data().xuData.viewport_height = $div.height();
8788
- // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8783
+ // const height = $div.data().xuData.viewport_height;
8784
+ // if (typeof height !== 'undefined') {
8785
+ // $div.css('height', 'unset');
8786
+ // } else {
8787
+ $div.data().xuData.viewport_height = $div.height();
8788
+ // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8789
+ // }
8790
+
8791
+ // set initial default height for all children
8792
+ const container_id = $container.attr('xu-ui-id');
8793
+ if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(container_id)) {
8794
+ UI_WORKER_OBJ.viewport_height_set_ids.push(container_id);
8795
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $container, height: $div.height() }, null, null, paramsP.dsSessionP);
8789
8796
  }
8790
8797
  }
8791
8798
 
@@ -8794,12 +8801,12 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8794
8801
  set_viewport_height: async function () {
8795
8802
  const { $elm, height } = queue_obj?.paramsP || {};
8796
8803
 
8797
- $elm.data().xuData.viewport_height = $div.height();
8804
+ // $elm.data().xuData.viewport_height = $div.height();
8798
8805
 
8799
- $.each($elm.children(), function (key, elm) {
8806
+ $.each($container.children(), function (key, elm) {
8800
8807
  if (!$(elm)[0].style.height && !$(elm).children().length) {
8801
- $(elm).css('height', height).addClass('viewport_height');
8802
- $(elm).data().xuData.viewport_height = $div.height();
8808
+ $(elm).css('height', height); //.addClass('viewport_height');
8809
+ // $(elm).data().xuData.viewport_height = $div.height();
8803
8810
  }
8804
8811
  });
8805
8812
 
@@ -12564,6 +12571,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12564
12571
  return;
12565
12572
  }
12566
12573
 
12574
+ const height = $div.data().xuData.viewport_height;
12575
+ if (typeof height !== 'undefined') {
12576
+ $div.css('height', 'unset');
12577
+ }
12578
+
12567
12579
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
12568
12580
  $div.removeClass('skeleton');
12569
12581
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);