@xuda.io/runtime-bundle 1.0.856 → 1.0.858

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.
@@ -27855,12 +27855,22 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27855
27855
 
27856
27856
  if (!UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')]) {
27857
27857
  UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')] = { $elm: $div.parent(), height: $div.height() };
27858
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
27858
27859
  }
27859
27860
  // if (!$div.parent().data().xuData.viewport_elm_height) {
27860
27861
  // $div.parent().data().xuData.viewport_elm_height = $div.height();
27861
27862
  // }
27862
27863
  }
27863
27864
 
27865
+ return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27866
+ },
27867
+ set_viewport_height: async function () {
27868
+ const { $elm, height } = queue_obj?.paramsP || {};
27869
+
27870
+ // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
27871
+ $elm.children().css(height, height);
27872
+ // }
27873
+
27864
27874
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27865
27875
  },
27866
27876
  };
@@ -31176,12 +31186,12 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
31176
31186
  // }
31177
31187
 
31178
31188
  // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
31179
-
31189
+ // val.$elm.children().css(height, val.height);
31180
31190
  // }
31181
31191
 
31182
- for (const item of UI_WORKER_OBJ.viewport_info) {
31183
- item.children().css(innerHeight, item.height);
31184
- }
31192
+ // for (const item of UI_WORKER_OBJ.viewport_info) {
31193
+ // item.children().css(innerHeight, item.height);
31194
+ // }
31185
31195
 
31186
31196
  func.UI.utils.indicator.screen.normal();
31187
31197