From 3b24a5ea4b1840f85753149eb7fe99739339b999 Mon Sep 17 00:00:00 2001 From: menelike Date: Mon, 19 Sep 2016 16:07:16 +0200 Subject: [PATCH] Document WebView position quirk Fixes: https://github.com/eface2face/cordova-plugin-iosrtc/issues/203 --- docs/videoCSS.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/videoCSS.md b/docs/videoCSS.md index a23bd5f0..b72cc054 100644 --- a/docs/videoCSS.md +++ b/docs/videoCSS.md @@ -17,3 +17,21 @@ Supported CSS properties are: **Note**: if the specified z-index is < 0 (that, is, the video elements will be positioned "behind" the web view), you should specify the `` `background-color` as `transparent` so the video element will be seen through the web view. This makes it possible to position HTML elements on top of the native video elements. + +## Quirks + +### Position of the `Webview` element does not match the corresponding `video` element + +In some cases iOS adds offsets to the `Webview` element. As a result the coordinates between the `video` element and it's corresponding `Webview` element are unsync. +This happens when the status bar is shown. This can be fixed through disabling the statusbar in two ways: + +* at runtime through [cordova-plugin-statusbar](https://github.com/apache/cordova-plugin-statusbar) + +* permanently through editing the project `.plist` like + +```xml + UIViewControllerBasedStatusBarAppearance + + UIStatusBarHidden + +```