You need to sign in to do that
Don't have an account?
Megha Mittal 19
Scrolling does not work in lightning component in salesforce1
I have a custom lightning component which is available as a tab in salesforce 1 app.
The page shows a list, but I am unable to scroll it horizontally in the app.
Please let me know if there is a solution for this.
The page shows a list, but I am unable to scroll it horizontally in the app.
Please let me know if there is a solution for this.
Greetings to you!
I suggest you use ui:scrollerWrapper that enables native scrolling of Lightning Components in Salesforce app as well as in Lightning Desktop.
Below is the sample code which I have tested in my org and it is working fine in mobile also. You can modify the code as per your requirement.
Application:
Component:
Controller:
Helper:
CSS:
Apex:
* I have used <ui:scrollerWrapper class="slds-scrollable_y"> to get the horizontal scrolling. *
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas