Hello,
I'm using the LightBoxImage widget from OutSystemsUI to display images in a gallery. The problem I'm facing is that everytime the LightBox is closed and I return to my screen it is always refreshed.
For example, I have a screen with 2 tabs and the second tab is for displaying images in a gallery, but everytime I open the lightbox slideshow and close it my screen flickers and resets to the first tab being selected.
Is there an elegant way to prevent it?
Regards,
Bogdan
I don't know if this is related, but there is a solution for the flicker
https://www.outsystems.com/forums/discussion/72916/outsystems-ui-lightboximage-undesired-behavior-on-close/
Let me know if it helped!
Kind Regards,
Márcio
Thank you very much, it works! :)
Hi @Bogdan Boglea,
I found the solution. The behaviour is happening for you because Starting tab value of Navigation/Tabs value is not set and the default value for that is 0. which means the default tab is the 1st tab.
To mitigate this, you have to pass the Active tab Id to the Starting tab value of Navigation/Tabs using OnTabChange event handler.
Create a new client variable to store the current tab Id and assign Active tab id to ti the client variable onTabChange event.
This will resolve your issue. I have attached .oml file for your reference.
Cheers..
Thanks, Aadhavan S