-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ion-list has mysterious 32px margin-bottom on iOS #7366
Comments
Hello, thanks for opening an issue with us! This is actually by design as this is how the lists look on the native platforms. You can read more about it here. Thanks for using Ionic! |
Can you provide more info? I've been wondering about the gap too. I don't see a gap in lists on iPhone's native phone app, App Store etc? |
Sorry but at least on iOS that isn't the case. I made an example project in Xcode with a UITableView and there's no gap within the bounds of the tableview when it is scrolled to the bottom. The last item is aligned to the bottom of the tableview. See screenshot and attached project. |
Also worth mentioning that this problem is new in Ionic 2. I'm converting an Ionic 1 app at the moment and previously didn't have to set margin-bottom to 0 on ion-list. |
I'm facing the same issue due to ion-list {
margin: -1px 0 32px 0;
} in .ios.css @jgw96 might you reopen this issue? |
Thanks for responding everyone! I have reopened this issue and will be discussing this with our design people. |
Hi, are there any updates? At least a suggestion about the best practice of how to fix it at a global level for the three different platforms. Thanks |
Set this variables in variables.scss $list-ios-margin-bottom : 0px; |
Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. Thank you for using Ionic! |
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know! Thank you for using Ionic! |
Issue moved to: ionic-team/ionic-v3#120 |
For some reason there's a 32px margin-bottom applied on ion-list which causes an unnecessary gap after the last item.
Best seen by scrolling the list to the bottom on the demo page:
http://ionicframework.com/docs/v2/components/#lists
Ionic 2 beta 10
The text was updated successfully, but these errors were encountered: