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