Hi,
I am getting one error while using ScrollToElement , it is giving a error as " Error Code - OSUI-API-28002, Cannot read properties of UnDefined(reading offsetheight)". It is working for old OutSystem UI Version but not working with latest version.
The approach which we followed to resolve the issue is - In Custom Layout we have created new header but default header is still needed for the scroll-to-element function to function correctly. It is possible that 'header' class is something which is used in JS Code somewhere earlier it was unable to find it as a result error was being thrown .
Regards,
Ishaan Takkar
Hi Ishaan. Can you share the OML please.
Hi Ranjith, we can't share oml file try to create one demo with same element for latest OutSystems UI you will able to replicate the issue.
Hi @Ishaan Takkar ,
that's not really how it works,
you know exactly what you are doing, so you are best placed to create a demo showing the problem. Then people can take if from there and try to solve it.
Now you are asking everybody to first put their time and energy in trying to replicate by guessing blindly what you are doing.
Dorine
Hi Ishaan,
Just now I check in my screen its working without issue. can you share the property details for scroll widget and Scrolltoelement logic.
Hi @Ishaan Takkar,
I am not being able to reproduce this issue in the latest OutSystemsUI version (2.14.0). Can you provide more information about how you are using this Client Action, what kind of layout you are using (LayoutSideMenu, LayoutTopMenu, etc) or if you are using a custom layout?
A demo reproducing this issue would be the best so I can properly assist you.
Giuliana.
Hi Giuliana Silva , we are using custom layout and inside tab we are using block and to that block we have enclosed in a a container and give it a name and that name.id using in a scroll element widget id.
Hi @Ishaan Takkar
Being custom layout and custom code we need to have access to a sample oml with that is being reproduced in order to be able to help.
Cheers,GM
Hi @Gonçalo Martins , Thanks for your reply.
We tried implementing using the Basic Layout and it is working on it. But it is not working on Custom Layout, if you could please help in specifically what we need to add in Custom Layout so it will able to scroll . Sorry but due to some restrictions we couldn't share the oml file.
As I mentioned, being a custom layout and custom code we need to have access to a sample oml with that is being reproduced in order to be able to help.
Hi @Gonçalo Martins , we are able to resolve the issue. Thanks!
Hello @Ishaan Takkar
It would be great if you could share the root cause and solution with the community 😉
Hi This is the most simple answer :)