@xuda.io/runtime-bundle 1.0.857 → 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
  };
@@ -11508,9 +11518,9 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
11508
11518
  // $div.css(height, $div.parent().data().xuData.viewport_elm_height);
11509
11519
  // }
11510
11520
 
11511
- for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
11512
- val.$elm.children().css(innerHeight, val.height);
11513
- }
11521
+ // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
11522
+ // val.$elm.children().css(height, val.height);
11523
+ // }
11514
11524
 
11515
11525
  // for (const item of UI_WORKER_OBJ.viewport_info) {
11516
11526
  // item.children().css(innerHeight, item.height);
@@ -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
  };
@@ -9216,9 +9226,9 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
9216
9226
  // $div.css(height, $div.parent().data().xuData.viewport_elm_height);
9217
9227
  // }
9218
9228
 
9219
- for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
9220
- val.$elm.children().css(innerHeight, val.height);
9221
- }
9229
+ // for (const [parent_elm_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.viewport_info)) {
9230
+ // val.$elm.children().css(height, val.height);
9231
+ // }
9222
9232
 
9223
9233
  // for (const item of UI_WORKER_OBJ.viewport_info) {
9224
9234
  // item.children().css(innerHeight, item.height);