cordova-plugin-camera
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -80,3 +80,8 @@ {{>cdv-license~}} | ||
images, and on phones with low memory, the Cordova activity may be killed. In this | ||
scenario, the image may not appear when the Cordova activity is restored. | ||
scenario, the result from the plugin call will be delivered via the resume event. | ||
See [the Android Lifecycle guide](http://cordova.apache.org/docs/en/dev/guide/platforms/android/lifecycle.html) | ||
for more information. The `pendingResult.result` value will contain the value that | ||
would be passed to the callbacks (either the URI/URL or an error message). Check | ||
the `pendingResult.pluginStatus` to determine whether or not the call was | ||
successful. | ||
@@ -83,0 +88,0 @@ #### Browser Quirks |
{ | ||
"name": "cordova-plugin-camera", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Cordova Camera Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -403,3 +403,8 @@ <!--- | ||
images, and on phones with low memory, the Cordova activity may be killed. In this | ||
scenario, the image may not appear when the Cordova activity is restored. | ||
scenario, the result from the plugin call will be delivered via the resume event. | ||
See [the Android Lifecycle guide](http://cordova.apache.org/docs/en/dev/guide/platforms/android/lifecycle.html) | ||
for more information. The `pendingResult.result` value will contain the value that | ||
would be passed to the callbacks (either the URI/URL or an error message). Check | ||
the `pendingResult.pluginStatus` to determine whether or not the call was | ||
successful. | ||
@@ -406,0 +411,0 @@ #### Browser Quirks |
@@ -23,2 +23,9 @@ <!-- | ||
### 2.1.0 (Jan 15, 2016) | ||
* added `.ratignore` | ||
* CB-10319 **Android** Adding reflective helper methods for permission requests | ||
* CB-9189 **Android** Implementing `save/restore` API to handle Activity destruction | ||
* CB-10241 App Crash cause by Camera Plugin **iOS 7** | ||
* CB-8940 Setting `z-index` values to maximum for UI buttons. | ||
### 2.0.0 (Nov 18, 2015) | ||
@@ -25,0 +32,0 @@ * [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated `RELEASENOTES` to be newest to oldest |
@@ -76,2 +76,5 @@ /* | ||
// Highest possible z-index supported across browsers. Anything used above is converted to this value. | ||
var HIGHEST_POSSIBLE_Z_INDEX = 2147483647; | ||
// Resize method | ||
@@ -333,4 +336,4 @@ function resizeImage(successCallback, errorCallback, file, targetWidth, targetHeight, encodingType) { | ||
// is necessary to avoid overriding by another page elements, -1 sometimes is not enough | ||
capturePreview = document.createElement("video"); | ||
capturePreview.style.cssText = "position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 999;"; | ||
capturePreview = document.createElement("video"); | ||
capturePreview.style.cssText = "position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: " + (HIGHEST_POSSIBLE_Z_INDEX - 1) + ";"; | ||
@@ -340,3 +343,3 @@ // Create capture button | ||
cameraCaptureButton.innerText = "Take"; | ||
cameraCaptureButton.style.cssText = buttonStyle + "position: fixed; left: 0; bottom: 0; margin: 20px; z-index: 1000"; | ||
cameraCaptureButton.style.cssText = buttonStyle + "position: fixed; left: 0; bottom: 0; margin: 20px; z-index: " + HIGHEST_POSSIBLE_Z_INDEX + ";"; | ||
@@ -346,3 +349,3 @@ // Create cancel button | ||
cameraCancelButton.innerText = "Cancel"; | ||
cameraCancelButton.style.cssText = buttonStyle + "position: fixed; right: 0; bottom: 0; margin: 20px; z-index: 1000"; | ||
cameraCancelButton.style.cssText = buttonStyle + "position: fixed; right: 0; bottom: 0; margin: 20px; z-index: " + HIGHEST_POSSIBLE_Z_INDEX + ";"; | ||
@@ -349,0 +352,0 @@ capture = new CaptureNS.MediaCapture(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
777495
100
3564
517