-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
After updating to 3.0 there is an extra padding when using ion-card inside a <ion-content>.
Removing the padding corrects the padding left an right but top and bottom has no padding anymore.
Happens on all iOS Devices and iSimulator with iOS 10.3 and on Android emulator with Android 7.1.1



Expected behavior:
Shoud look like before in 2.3


Steps to reproduce:
Put an ion-card in a ion-content with padding
Related code:
<ion-content padding>
<ion-card>
</ion-card>
</ion-content>
Other information:
I could fix this problem by removing the padding on ion-content and adding some scss to app.scss
<ion-content>
<ion-card>
</ion-card>
</ion-content>
ion-content.content {
.scroll-content {
padding-top: 1px;
padding-bottom: 1px;
}
}
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.6.0
Xcode version: Xcode 8.3 Build version 8E162