@capgo/capacitor-inappbrowser 8.6.28 → 8.6.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,6 +33,7 @@ import android.text.TextUtils;
|
|
|
33
33
|
import android.util.Base64;
|
|
34
34
|
import android.util.Log;
|
|
35
35
|
import android.util.TypedValue;
|
|
36
|
+
import android.view.Gravity;
|
|
36
37
|
import android.view.KeyEvent;
|
|
37
38
|
import android.view.View;
|
|
38
39
|
import android.view.ViewGroup;
|
|
@@ -5990,12 +5991,14 @@ public class WebViewDialog extends Dialog implements ProxyResponseRouting.ProxyR
|
|
|
5990
5991
|
params.height = (int) getPixels(height);
|
|
5991
5992
|
params.x = (x != null) ? (int) getPixels(x) : 0;
|
|
5992
5993
|
params.y = (y != null) ? (int) getPixels(y) : 0;
|
|
5994
|
+
params.gravity = Gravity.TOP | Gravity.START;
|
|
5993
5995
|
} else if (height != null && width == null) {
|
|
5994
5996
|
// If only height is specified, use custom height with fullscreen width
|
|
5995
5997
|
params.width = WindowManager.LayoutParams.MATCH_PARENT;
|
|
5996
5998
|
params.height = (int) getPixels(height);
|
|
5997
5999
|
params.x = 0;
|
|
5998
6000
|
params.y = (y != null) ? (int) getPixels(y) : 0;
|
|
6001
|
+
params.gravity = Gravity.TOP | Gravity.START;
|
|
5999
6002
|
} else {
|
|
6000
6003
|
// Default to fullscreen
|
|
6001
6004
|
params.width = WindowManager.LayoutParams.MATCH_PARENT;
|
|
@@ -98,7 +98,7 @@ public class CapgoInAppBrowserPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
98
98
|
case aware = "AWARE"
|
|
99
99
|
case fakeVisible = "FAKE_VISIBLE"
|
|
100
100
|
}
|
|
101
|
-
private let pluginVersion: String = "8.6.
|
|
101
|
+
private let pluginVersion: String = "8.6.29"
|
|
102
102
|
public let identifier = "CapgoInAppBrowserPlugin"
|
|
103
103
|
public let jsName = "CapgoInAppBrowser"
|
|
104
104
|
public let pluginMethods: [CAPPluginMethod] = [
|