@xuda.io/runtime-bundle 1.0.873 → 1.0.875

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.
@@ -8786,19 +8786,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8786
8786
  $div.data().xuData.viewport_height = $div.height();
8787
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
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);
8795
+ }
8789
8796
  }
8790
8797
 
8791
8798
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8792
8799
  },
8793
8800
  set_viewport_height: async function () {
8794
- const { $elm, height } = queue_obj?.paramsP || {};
8801
+ const { $container, 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
 
@@ -8787,19 +8787,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8787
8787
  $div.data().xuData.viewport_height = $div.height();
8788
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
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);
8796
+ }
8790
8797
  }
8791
8798
 
8792
8799
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8793
8800
  },
8794
8801
  set_viewport_height: async function () {
8795
- const { $elm, height } = queue_obj?.paramsP || {};
8802
+ const { $container, 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