From 8cedf114767543b8a733993a33c6a30accc6aa6e Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Tue, 24 Oct 2023 15:59:23 +0200 Subject: [PATCH] bugfix scrolling (#599) * small bugfixes * bugfix launchpad compatibility for custom controls * bugfixes security policy and unbind * bugfix unbind function * scrolling error bugfix --- src/z2ui5_cl_fw_http_handler.clas.abap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/z2ui5_cl_fw_http_handler.clas.abap b/src/z2ui5_cl_fw_http_handler.clas.abap index f29da363..1178873d 100644 --- a/src/z2ui5_cl_fw_http_handler.clas.abap +++ b/src/z2ui5_cl_fw_http_handler.clas.abap @@ -95,7 +95,7 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION. ` });` && |\n| && ` }` && |\n| && ` if (sap.z2ui5.oResponse.PARAMS.T_SCROLL) {` && |\n| && - ` jQuery.sap.delayedCall(1, this, () => {` && |\n| && + ` // jQuery.sap.delayedCall(1, this, () => {` && |\n| && ` sap.z2ui5.oResponse.PARAMS.T_SCROLL.forEach(item => {` && |\n| && ` try {` && |\n| && ` sap.z2ui5.oView.byId(item.N).scrollTo(item.V);` && |\n| && @@ -103,9 +103,9 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION. ` try {` && |\n| && ` var ele = '#' + sap.z2ui5.oView.byId(item.N).getId() + '-inner';` && |\n| && ` $(ele).scrollTop(item.V);` && |\n| && - ` } catch { }` && |\n| && + ` } catch { setTimeout( function( item ) { sap.z2ui5.oView.byId(item.N).scrollTo(item.V); } , 1 , item);}` && |\n| && ` }` && |\n| && - ` });` && |\n| && + ` // });` && |\n| && ` }` && |\n| && ` ` && |\n| && ` );` && |\n| &&