Scroll-content looses margin-top when using camera plugin


#1

Hey there !

I’m using camera plugin to get pictures. I found that after using the plugin and getting back to previous page, the scroll-content element loses the margin-top : 56px; attribute.

I tryed to fix it by forcing the attribut :

.ion-page > ion-content > .scroll-content {
  margin-top: 56px !important;
}

But My Tabs in the previous page are not highlighted anymore.

This is a first video without the hot fix, you can see that my tabs disapear and that the page is kinda scrolled up :

Now a video with the hotfix (tab not highlighted) :

A hand is welcome there :slight_smile:

Here is my config :

{
    "name": "xxx",
    "author": "xxx",
    "homepage": "xxx",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "^4.1.0",
        "@angular/compiler": "^4.1.0",
        "@angular/compiler-cli": "^4.1.0",
        "@angular/core": "^4.1.0",
        "@angular/forms": "^4.1.0",
        "@angular/http": "^4.1.0",
        "@angular/platform-browser": "^4.1.0",
        "@angular/platform-browser-dynamic": "^4.1.0",
        "@angular/platform-server": "^4.0.2",
        "@angular/router": "^4.0.2",
        "@ionic-native/android-permissions": "^4.2.1",
        "@ionic-native/autostart": "^4.3.1",
        "@ionic-native/barcode-scanner": "^3.7.0",
        "@ionic-native/camera": "^3.10.3",
        "@ionic-native/clipboard": "^3.1.1",
        "@ionic-native/core": "^3.2.0",
        "@ionic-native/device": "^3.6.1",
        "@ionic-native/file": "^4.2.1",
        "@ionic-native/file-transfer": "^4.2.1",
        "@ionic-native/keyboard": "^4.2.1",
        "@ionic-native/push": "3.4.4",
        "@ionic/storage": "2.0.0",
        "@ngx-translate/core": "^6.0.1",
        "@ngx-translate/http-loader": "0.0.3",
        "angular2-jwt": "^0.2.2",
        "cordova-android": "^6.2.3",
        "cordova-plugin-android-permissions": "^1.0.0",
        "cordova-plugin-autostart": "^2.0.1",
        "cordova-plugin-camera": "^2.4.1",
        "cordova-plugin-compat": "^1.1.0",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-file": "^4.3.3",
        "cordova-plugin-file-transfer": "^1.6.3",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.1",
        "cordova-plugin-whitelist": "^1.3.1",
        "install": "^0.10.0",
        "ionic-angular": "^3.7.1-201710042112",
        "ionic-native": "2.8.1",
        "ionic-plugin-deeplinks": "^1.0.15",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "ng2-pdf-viewer": "^1.2.6",
        "npm": "^4.5.0",
        "phonegap-plugin-barcodescanner": "^6.0.6",
        "phonegap-plugin-push": "^1.8.2",
        "rxjs": "5.0.1",
        "sw-toolbox": "3.4.0",
        "zone.js": "0.7.2"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^3.0.0",
        "ionic": "3.12.0",
        "typescript": "2.2.2"
    },
    "cordovaPlugins": [
        "cordova-plugin-whitelist",
        "cordova-plugin-statusbar",
        "cordova-plugin-console",
        "cordova-plugin-device",
        "cordova-plugin-splashscreen",
        "ionic-plugin-keyboard"
    ],
    "cordovaPlatforms": [],
    "description": "Digiteal: An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "phonegap-plugin-push": {
                "SENDER_ID": "940980525349"
            },
            "phonegap-plugin-barcodescanner": {},
            "cordova-plugin-camera": {},
            "ionic-plugin-deeplinks": {
                "URL_SCHEME": "digiteal",
                "DEEPLINK_SCHEME": "https",
                "DEEPLINK_HOST": "test.digiteal.eu",
                "ANDROID_PATH_PREFIX": "/",
                "ANDROID_2_PATH_PREFIX": "/",
                "ANDROID_3_PATH_PREFIX": "/",
                "ANDROID_4_PATH_PREFIX": "/",
                "ANDROID_5_PATH_PREFIX": "/",
                "DEEPLINK_2_SCHEME": "",
                "DEEPLINK_2_HOST": "",
                "DEEPLINK_3_SCHEME": " ",
                "DEEPLINK_3_HOST": " ",
                "DEEPLINK_4_SCHEME": " ",
                "DEEPLINK_4_HOST": " ",
                "DEEPLINK_5_SCHEME": " ",
                "DEEPLINK_5_HOST": " "
            },
            "cordova-plugin-file": {},
            "cordova-plugin-file-transfer": {},
            "cordova-plugin-compat": {},
            "cordova-plugin-android-permissions": {},
            "cordova-plugin-autostart": {}
        },
        "platforms": [
            "android"
        ]
    }
}