@xuda.io/runtime-bundle 1.0.871 → 1.0.873
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.
|
@@ -27859,15 +27859,23 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27859
27859
|
const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
|
|
27860
27860
|
}
|
|
27861
27861
|
|
|
27862
|
-
const parent_id = $div.parent().attr('xu-ui-id');
|
|
27863
|
-
if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
|
|
27864
|
-
|
|
27865
|
-
|
|
27866
|
-
}
|
|
27862
|
+
// const parent_id = $div.parent().attr('xu-ui-id');
|
|
27863
|
+
// if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
|
|
27864
|
+
// UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
|
|
27865
|
+
// func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
|
|
27866
|
+
// }
|
|
27867
27867
|
|
|
27868
|
-
if ($div.hasClass('viewport_height')) {
|
|
27869
|
-
|
|
27870
|
-
}
|
|
27868
|
+
// if ($div.hasClass('viewport_height')) {
|
|
27869
|
+
// $div.css('height', 'unset');
|
|
27870
|
+
// }
|
|
27871
|
+
|
|
27872
|
+
// const height = $div.data().xuData.viewport_height;
|
|
27873
|
+
// if (typeof height !== 'undefined') {
|
|
27874
|
+
// $div.css('height', 'unset');
|
|
27875
|
+
// } else {
|
|
27876
|
+
$div.data().xuData.viewport_height = $div.height();
|
|
27877
|
+
// func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $elm: $div.parent(), height: $div.height() }, null, null, paramsP.dsSessionP);
|
|
27878
|
+
// }
|
|
27871
27879
|
}
|
|
27872
27880
|
|
|
27873
27881
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
@@ -27875,7 +27883,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27875
27883
|
set_viewport_height: async function () {
|
|
27876
27884
|
const { $elm, height } = queue_obj?.paramsP || {};
|
|
27877
27885
|
|
|
27878
|
-
|
|
27886
|
+
$elm.data().xuData.viewport_height = $div.height();
|
|
27879
27887
|
|
|
27880
27888
|
$.each($elm.children(), function (key, elm) {
|
|
27881
27889
|
if (!$(elm)[0].style.height && !$(elm).children().length) {
|
|
@@ -34515,6 +34523,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34515
34523
|
return;
|
|
34516
34524
|
}
|
|
34517
34525
|
|
|
34526
|
+
const height = $div.data().xuData.viewport_height;
|
|
34527
|
+
if (typeof height !== 'undefined') {
|
|
34528
|
+
$div.css('height', 'unset');
|
|
34529
|
+
}
|
|
34530
|
+
|
|
34518
34531
|
if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
34519
34532
|
$div.removeClass('skeleton');
|
|
34520
34533
|
$div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|