@xuda.io/runtime-bundle 1.0.875 → 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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8788,21 +8788,21 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8788
8788
|
// }
|
|
8789
8789
|
|
|
8790
8790
|
// set initial default height for all children
|
|
8791
|
-
const
|
|
8792
|
-
if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(
|
|
8793
|
-
UI_WORKER_OBJ.viewport_height_set_ids.push(
|
|
8794
|
-
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $
|
|
8791
|
+
const parent_id = $div.parent().attr('xu-ui-id');
|
|
8792
|
+
if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
|
|
8793
|
+
UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
|
|
8794
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $div, height: $div.height() }, null, null, paramsP.dsSessionP);
|
|
8795
8795
|
}
|
|
8796
8796
|
}
|
|
8797
8797
|
|
|
8798
8798
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8799
8799
|
},
|
|
8800
8800
|
set_viewport_height: async function () {
|
|
8801
|
-
const { $
|
|
8801
|
+
const { $div, height } = queue_obj?.paramsP || {};
|
|
8802
8802
|
|
|
8803
8803
|
// $elm.data().xuData.viewport_height = $div.height();
|
|
8804
8804
|
|
|
8805
|
-
$.each($
|
|
8805
|
+
$.each($div.parent().children(), function (key, elm) {
|
|
8806
8806
|
if (!$(elm)[0].style.height && !$(elm).children().length) {
|
|
8807
8807
|
$(elm).css('height', height); //.addClass('viewport_height');
|
|
8808
8808
|
// $(elm).data().xuData.viewport_height = $div.height();
|
|
@@ -8789,21 +8789,21 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8789
8789
|
// }
|
|
8790
8790
|
|
|
8791
8791
|
// set initial default height for all children
|
|
8792
|
-
const
|
|
8793
|
-
if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(
|
|
8794
|
-
UI_WORKER_OBJ.viewport_height_set_ids.push(
|
|
8795
|
-
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $
|
|
8792
|
+
const parent_id = $div.parent().attr('xu-ui-id');
|
|
8793
|
+
if (!UI_WORKER_OBJ.viewport_height_set_ids.includes(parent_id)) {
|
|
8794
|
+
UI_WORKER_OBJ.viewport_height_set_ids.push(parent_id);
|
|
8795
|
+
func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'set_viewport_height', { $div, height: $div.height() }, null, null, paramsP.dsSessionP);
|
|
8796
8796
|
}
|
|
8797
8797
|
}
|
|
8798
8798
|
|
|
8799
8799
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
8800
8800
|
},
|
|
8801
8801
|
set_viewport_height: async function () {
|
|
8802
|
-
const { $
|
|
8802
|
+
const { $div, height } = queue_obj?.paramsP || {};
|
|
8803
8803
|
|
|
8804
8804
|
// $elm.data().xuData.viewport_height = $div.height();
|
|
8805
8805
|
|
|
8806
|
-
$.each($
|
|
8806
|
+
$.each($div.parent().children(), function (key, elm) {
|
|
8807
8807
|
if (!$(elm)[0].style.height && !$(elm).children().length) {
|
|
8808
8808
|
$(elm).css('height', height); //.addClass('viewport_height');
|
|
8809
8809
|
// $(elm).data().xuData.viewport_height = $div.height();
|