@xuda.io/runtime-bundle 1.0.871 → 1.0.872

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.
@@ -27859,14 +27859,22 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27859
27859
  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);
27860
27860
  }
27861
27861
 
27862
- const parent_id = $div.parent().attr('xu-ui-id');
27863
- if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
27864
- UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
27865
- func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
27866
- }
27862
+ // const parent_id = $div.parent().attr('xu-ui-id');
27863
+ // if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
27864
+ // UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
27865
+ // func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
27866
+ // }
27867
27867
 
27868
- if ($div.hasClass('viewport_height')) {
27868
+ // if ($div.hasClass('viewport_height')) {
27869
+ // $div.css('height', 'unset');
27870
+ // }
27871
+
27872
+ const height = $div.data().xuData.viewport_height;
27873
+ if (typeof height !== 'undefined') {
27869
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);
27870
27878
  }
27871
27879
  }
27872
27880
 
@@ -27875,7 +27883,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27875
27883
  set_viewport_height: async function () {
27876
27884
  const { $elm, height } = queue_obj?.paramsP || {};
27877
27885
 
27878
- // $elm.children().css('height', height);
27886
+ $elm.data().xuData.viewport_height = $div.height();
27879
27887
 
27880
27888
  $.each($elm.children(), function (key, elm) {
27881
27889
  if (!$(elm)[0].style.height && !$(elm).children().length) {