@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.
@@ -8765,12 +8765,22 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8765
8765
 
8766
8766
  if (!UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')]) {
8767
8767
  UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')] = { $elm: $div.parent(), height: $div.height() };
8768
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8768
8769
  }
8769
8770
  // if (!$div.parent().data().xuData.viewport_elm_height) {
8770
8771
  // $div.parent().data().xuData.viewport_elm_height = $div.height();
8771
8772
  // }
8772
8773
  }
8773
8774
 
8775
+ return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8776
+ },
8777
+ set_viewport_height: async function () {
8778
+ const { $elm, height } = queue_obj?.paramsP || {};
8779
+
8780
+ // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
8781
+ $elm.children().css(height, height);
8782
+ // }
8783
+
8774
8784
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8775
8785
  },
8776
8786
  };
@@ -11509,12 +11519,12 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
11509
11519
  // }
11510
11520
 
11511
11521
  // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
11512
-
11522
+ // val.$elm.children().css(height, val.height);
11513
11523
  // }
11514
11524
 
11515
- for (const item of UI_WORKER_OBJ.viewport_info) {
11516
- item.children().css(innerHeight, item.height);
11517
- }
11525
+ // for (const item of UI_WORKER_OBJ.viewport_info) {
11526
+ // item.children().css(innerHeight, item.height);
11527
+ // }
11518
11528
 
11519
11529
  func.UI.utils.indicator.screen.normal();
11520
11530
 
@@ -8766,12 +8766,22 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8766
8766
 
8767
8767
  if (!UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')]) {
8768
8768
  UI_WORKER_OBJ.viewport_info[$div.parent().attr('xu-ui-id')] = { $elm: $div.parent(), height: $div.height() };
8769
+ func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
8769
8770
  }
8770
8771
  // if (!$div.parent().data().xuData.viewport_elm_height) {
8771
8772
  // $div.parent().data().xuData.viewport_elm_height = $div.height();
8772
8773
  // }
8773
8774
  }
8774
8775
 
8776
+ return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8777
+ },
8778
+ set_viewport_height: async function () {
8779
+ const { $elm, height } = queue_obj?.paramsP || {};
8780
+
8781
+ // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
8782
+ $elm.children().css(height, height);
8783
+ // }
8784
+
8775
8785
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8776
8786
  },
8777
8787
  };
@@ -9217,12 +9227,12 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
9217
9227
  // }
9218
9228
 
9219
9229
  // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
9220
-
9230
+ // val.$elm.children().css(height, val.height);
9221
9231
  // }
9222
9232
 
9223
- for (const item of UI_WORKER_OBJ.viewport_info) {
9224
- item.children().css(innerHeight, item.height);
9225
- }
9233
+ // for (const item of UI_WORKER_OBJ.viewport_info) {
9234
+ // item.children().css(innerHeight, item.height);
9235
+ // }
9226
9236
 
9227
9237
  func.UI.utils.indicator.screen.normal();
9228
9238