@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.
|
@@ -31190,11 +31190,19 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
31190
31190
|
|
|
31191
31191
|
func.UI.utils.indicator.screen.normal();
|
|
31192
31192
|
|
|
31193
|
-
|
|
31193
|
+
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
31194
|
+
|
|
31195
|
+
for (const [container_xu_ui_id, val] of Object.entries(UI_WORKER_OBJ.pending_for_viewport_render)) {
|
|
31196
|
+
const height = val.base_$div.height();
|
|
31197
|
+
if (height) {
|
|
31198
|
+
const total_height = height * val.data.length || 1;
|
|
31199
|
+
if (total_height > $container.height()) {
|
|
31200
|
+
$container.css('height', height * val.data.length);
|
|
31201
|
+
}
|
|
31202
|
+
}
|
|
31194
31203
|
debugger;
|
|
31195
31204
|
}
|
|
31196
31205
|
|
|
31197
|
-
let ret_screen_loading = await func.UI.screen.screen_loading_done(SESSION_ID, params, ret_render_$container, jobNoP);
|
|
31198
31206
|
return ret_screen_loading;
|
|
31199
31207
|
}
|
|
31200
31208
|
};
|
|
@@ -34438,10 +34446,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34438
34446
|
const data = { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container };
|
|
34439
34447
|
const container_id = $container.attr('xu-ui-id');
|
|
34440
34448
|
if (!UI_WORKER_OBJ.pending_for_viewport_render[container_id]) {
|
|
34441
|
-
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = [];
|
|
34449
|
+
UI_WORKER_OBJ.pending_for_viewport_render[container_id] = { base_$div: $div, data: [], $container };
|
|
34442
34450
|
await iterate_child($div, nodeP, parent_infoP, $root_container);
|
|
34443
34451
|
}
|
|
34444
|
-
UI_WORKER_OBJ.pending_for_viewport_render[container_id].push(data);
|
|
34452
|
+
UI_WORKER_OBJ.pending_for_viewport_render[container_id].data.push(data);
|
|
34445
34453
|
|
|
34446
34454
|
// if (!$div.children().length) {
|
|
34447
34455
|
// // render the first element to determine height
|