CB-8405 Use z-index instead of z-order

This commit is contained in:
Murat Sutunc 2015-04-16 12:44:29 -07:00
parent b67e4a09ed
commit fb8ce21711

View File

@ -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();