Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8940

[Windows] Camera image z-index is too low. It sits behind JQuery mobile UI Elements (header / footer)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.0
    • None
    • cordova-plugin-camera
    • Windows Emulator / Nokia Lumia 920

    Description

      Changing the values in CameraProxy.js to below works a treat

      // z-index style element for capturePreview and captureCancelButton elts
      // is necessary to avoid overriding by another page elements, -1 sometimes is not enough
      capturePreview.style.cssText = "position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 9999";

      // Create cancel button
      captureCancelButton = document.createElement("button");
      captureCancelButton.innerText = "Cancel";
      captureCancelButton.style.cssText = "position: fixed; right: 0; bottom: 0; display: block; margin: 20px; z-index: 10000";

      Attachments

        Activity

          People

            rakatyal Raghav Katyal
            rapiddave david marshall
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: