@xuda.io/runtime-bundle 1.0.871 → 1.0.873

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.
@@ -8769,15 +8769,23 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8769
8769
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
8770
8770
  }
8771
8771
 
8772
- const parent_id = $div.parent().attr('xu-ui-id');
8773
- if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
8774
- UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
8775
- func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8776
- }
8772
+ // const parent_id = $div.parent().attr('xu-ui-id');
8773
+ // if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
8774
+ // UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
8775
+ // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8776
+ // }
8777
8777
 
8778
- if ($div.hasClass('viewport_height')) {
8779
- $div.css('height', 'unset');
8780
- }
8778
+ // if ($div.hasClass('viewport_height')) {
8779
+ // $div.css('height', 'unset');
8780
+ // }
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);
8788
+ // }
8781
8789
  }
8782
8790
 
8783
8791
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
@@ -8785,7 +8793,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8785
8793
  set_viewport_height: async function () {
8786
8794
  const { $elm, height } = queue_obj?.paramsP || {};
8787
8795
 
8788
- // $elm.children().css('height', height);
8796
+ $elm.data().xuData.viewport_height = $div.height();
8789
8797
 
8790
8798
  $.each($elm.children(), function (key, elm) {
8791
8799
  if (!$(elm)[0].style.height && !$(elm).children().length) {
@@ -14848,6 +14856,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14848
14856
  return;
14849
14857
  }
14850
14858
 
14859
+ const height = $div.data().xuData.viewport_height;
14860
+ if (typeof height !== 'undefined') {
14861
+ $div.css('height', 'unset');
14862
+ }
14863
+
14851
14864
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
14852
14865
  $div.removeClass('skeleton');
14853
14866
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
@@ -8770,15 +8770,23 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8770
8770
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
8771
8771
  }
8772
8772
 
8773
- const parent_id = $div.parent().attr('xu-ui-id');
8774
- if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
8775
- UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
8776
- func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8777
- }
8773
+ // const parent_id = $div.parent().attr('xu-ui-id');
8774
+ // if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
8775
+ // UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
8776
+ // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8777
+ // }
8778
8778
 
8779
- if ($div.hasClass('viewport_height')) {
8780
- $div.css('height', 'unset');
8781
- }
8779
+ // if ($div.hasClass('viewport_height')) {
8780
+ // $div.css('height', 'unset');
8781
+ // }
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);
8789
+ // }
8782
8790
  }
8783
8791
 
8784
8792
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
@@ -8786,7 +8794,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8786
8794
  set_viewport_height: async function () {
8787
8795
  const { $elm, height } = queue_obj?.paramsP || {};
8788
8796
 
8789
- // $elm.children().css('height', height);
8797
+ $elm.data().xuData.viewport_height = $div.height();
8790
8798
 
8791
8799
  $.each($elm.children(), function (key, elm) {
8792
8800
  if (!$(elm)[0].style.height && !$(elm).children().length) {
@@ -12556,6 +12564,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12556
12564
  return;
12557
12565
  }
12558
12566
 
12567
+ const height = $div.data().xuData.viewport_height;
12568
+ if (typeof height !== 'undefined') {
12569
+ $div.css('height', 'unset');
12570
+ }
12571
+
12559
12572
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
12560
12573
  $div.removeClass('skeleton');
12561
12574
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);