@xuda.io/runtime-bundle 1.0.873 → 1.0.875
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.
|
@@ -27876,19 +27876,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27876
27876
|
$div.data().xuData.viewport_height = $div.height();
|
|
27877
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
27878
|
// }
|
|
27879
|
+
|
|
27880
|
+
// set initial default height for all children
|
|
27881
|
+
const container_id = $container.attr('xu-ui-id');
|
|
27882
|
+
if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(container_id)) {
|
|
27883
|
+
UI_WORKER_OBJ.viewport_height_set_ids.push(container_id);
|
|
27884
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $container, height: $div.height() }, null, null, paramsP.dsSessionP);
|
|
27885
|
+
}
|
|
27879
27886
|
}
|
|
27880
27887
|
|
|
27881
27888
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27882
27889
|
},
|
|
27883
27890
|
set_viewport_height: async function () {
|
|
27884
|
-
const { $
|
|
27891
|
+
const { $container, height } = queue_obj?.paramsP || {};
|
|
27885
27892
|
|
|
27886
|
-
$elm.data().xuData.viewport_height = $div.height();
|
|
27893
|
+
// $elm.data().xuData.viewport_height = $div.height();
|
|
27887
27894
|
|
|
27888
|
-
$.each($
|
|
27895
|
+
$.each($container.children(), function (key, elm) {
|
|
27889
27896
|
if (!$(elm)[0].style.height && !$(elm).children().length) {
|
|
27890
|
-
$(elm).css('height', height)
|
|
27891
|
-
$(elm).data().xuData.viewport_height = $div.height();
|
|
27897
|
+
$(elm).css('height', height); //.addClass('viewport_height');
|
|
27898
|
+
// $(elm).data().xuData.viewport_height = $div.height();
|
|
27892
27899
|
}
|
|
27893
27900
|
});
|
|
27894
27901
|
|