mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 03:42:52 +08:00
CB-8405 Use z-index instead of z-order
This commit is contained in:
parent
b67e4a09ed
commit
fb8ce21711
@ -221,12 +221,12 @@ function takePictureFromCameraWP(successCallback, errorCallback, args) {
|
|||||||
|
|
||||||
// z-order style element for capturePreview and captureCancelButton elts
|
// z-order style element for capturePreview and captureCancelButton elts
|
||||||
// is necessary to avoid overriding by another page elements, -1 sometimes is not enough
|
// 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-order: 999";
|
capturePreview.style.cssText = "position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 999";
|
||||||
|
|
||||||
// Create cancel button
|
// Create cancel button
|
||||||
captureCancelButton = document.createElement("button");
|
captureCancelButton = document.createElement("button");
|
||||||
captureCancelButton.innerText = "Cancel";
|
captureCancelButton.innerText = "Cancel";
|
||||||
captureCancelButton.style.cssText = "position: fixed; right: 0; bottom: 0; display: block; margin: 20px; z-order: 1000";
|
captureCancelButton.style.cssText = "position: fixed; right: 0; bottom: 0; display: block; margin: 20px; z-index: 1000";
|
||||||
|
|
||||||
capture = new CaptureNS.MediaCapture();
|
capture = new CaptureNS.MediaCapture();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user