@xuda.io/runtime-bundle 1.0.860 → 1.0.862
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -11523,11 +11523,19 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
11523
11523
|
|
|
11524
11524
|
func.UI.utils.indicator.screen.normal();
|
|
11525
11525
|
|
|
11526
|
-
|
|
11526
|
+
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
11527
|
+
|
|
11528
|
+
for (const [container_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.pending_for_viewport_render)) {
|
|
11529
|
+
const height = val.base_$div.height();
|
|
11530
|
+
if (height) {
|
|
11531
|
+
const total_height = height * val.data.length || 1;
|
|
11532
|
+
if (total_height > $container.height()) {
|
|
11533
|
+
$container.css('height', height * val.data.length);
|
|
11534
|
+
}
|
|
11535
|
+
}
|
|
11527
11536
|
debugger;
|
|
11528
11537
|
}
|
|
11529
11538
|
|
|
11530
|
-
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
11531
11539
|
return ret_screen_loading;
|
|
11532
11540
|
}
|
|
11533
11541
|
};
|
|
@@ -14771,10 +14779,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14771
14779
|
const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
14772
14780
|
const container_id = $container.attr('xu-ui-id');
|
|
14773
14781
|
if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
14774
|
-
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = [];
|
|
14782
|
+
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
14775
14783
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
14776
14784
|
}
|
|
14777
|
-
UI_WORKER_OBJ.pending_for_viewport_render[container_id].push(data);
|
|
14785
|
+
UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
14778
14786
|
|
|
14779
14787
|
// if (!$div.children().length) {
|
|
14780
14788
|
// // render the first element to determine height
|
|
@@ -9231,11 +9231,19 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
9231
9231
|
|
|
9232
9232
|
func.UI.utils.indicator.screen.normal();
|
|
9233
9233
|
|
|
9234
|
-
|
|
9234
|
+
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
9235
|
+
|
|
9236
|
+
for (const [container_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.pending_for_viewport_render)) {
|
|
9237
|
+
const height = val.base_$div.height();
|
|
9238
|
+
if (height) {
|
|
9239
|
+
const total_height = height * val.data.length || 1;
|
|
9240
|
+
if (total_height > $container.height()) {
|
|
9241
|
+
$container.css('height', height * val.data.length);
|
|
9242
|
+
}
|
|
9243
|
+
}
|
|
9235
9244
|
debugger;
|
|
9236
9245
|
}
|
|
9237
9246
|
|
|
9238
|
-
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
9239
9247
|
return ret_screen_loading;
|
|
9240
9248
|
}
|
|
9241
9249
|
};
|
|
@@ -12479,10 +12487,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12479
12487
|
const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
12480
12488
|
const container_id = $container.attr('xu-ui-id');
|
|
12481
12489
|
if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
12482
|
-
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = [];
|
|
12490
|
+
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
12483
12491
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
12484
12492
|
}
|
|
12485
|
-
UI_WORKER_OBJ.pending_for_viewport_render[container_id].push(data);
|
|
12493
|
+
UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
12486
12494
|
|
|
12487
12495
|
// if (!$div.children().length) {
|
|
12488
12496
|
// // render the first element to determine height
|