Skip to content

Extra padding when ion-card inside ion-content with padding #11102

@e9li

Description

@e9li

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
bildschirmfoto 2017-04-06 um 22 25 54
bildschirmfoto 2017-04-06 um 22 42 49
bildschirmfoto 2017-04-06 um 22 53 03

Expected behavior:
Shoud look like before in 2.3
bildschirmfoto 2017-04-06 um 22 24 16
bildschirmfoto 2017-04-06 um 22 46 47

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: replythe issue needs a response from the user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions