@xuda.io/runtime-bundle 1.0.875 → 1.0.877

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.
@@ -8788,21 +8788,21 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8788
8788
  // }
8789
8789
 
8790
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);
8791
+ const parent_id = $div.parent().attr('xu-ui-id');
8792
+ if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
8793
+ UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
8794
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $div, height: $div.height() }, null, null, paramsP.dsSessionP);
8795
8795
  }
8796
8796
  }
8797
8797
 
8798
8798
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8799
8799
  },
8800
8800
  set_viewport_height: async function () {
8801
- const { $container, height } = queue_obj?.paramsP || {};
8801
+ const { $div, height } = queue_obj?.paramsP || {};
8802
8802
 
8803
8803
  // $elm.data().xuData.viewport_height = $div.height();
8804
8804
 
8805
- $.each($container.children(), function (key, elm) {
8805
+ $.each($div.parent().children(), function (key, elm) {
8806
8806
  if (!$(elm)[0].style.height && !$(elm).children().length) {
8807
8807
  $(elm).css('height', height); //.addClass('viewport_height');
8808
8808
  // $(elm).data().xuData.viewport_height = $div.height();
@@ -14865,7 +14865,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14865
14865
 
14866
14866
  const height = $div.data().xuData.viewport_height;
14867
14867
  if (typeof height !== 'undefined') {
14868
- $div.css('height', 'unset');
14868
+ // $div.css('height', 'unset');
14869
+ $div[0].style.removeProperty('height');
14869
14870
  }
14870
14871
 
14871
14872
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
@@ -8789,21 +8789,21 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8789
8789
  // }
8790
8790
 
8791
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);
8792
+ const parent_id = $div.parent().attr('xu-ui-id');
8793
+ if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
8794
+ UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
8795
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $div, height: $div.height() }, null, null, paramsP.dsSessionP);
8796
8796
  }
8797
8797
  }
8798
8798
 
8799
8799
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8800
8800
  },
8801
8801
  set_viewport_height: async function () {
8802
- const { $container, height } = queue_obj?.paramsP || {};
8802
+ const { $div, height } = queue_obj?.paramsP || {};
8803
8803
 
8804
8804
  // $elm.data().xuData.viewport_height = $div.height();
8805
8805
 
8806
- $.each($container.children(), function (key, elm) {
8806
+ $.each($div.parent().children(), function (key, elm) {
8807
8807
  if (!$(elm)[0].style.height && !$(elm).children().length) {
8808
8808
  $(elm).css('height', height); //.addClass('viewport_height');
8809
8809
  // $(elm).data().xuData.viewport_height = $div.height();
@@ -12573,7 +12573,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12573
12573
 
12574
12574
  const height = $div.data().xuData.viewport_height;
12575
12575
  if (typeof height !== 'undefined') {
12576
- $div.css('height', 'unset');
12576
+ // $div.css('height', 'unset');
12577
+ $div[0].style.removeProperty('height');
12577
12578
  }
12578
12579
 
12579
12580
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {