You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2026/03/01 10:25:29 UTC
(cordova-plugin-inappbrowser) 01/02: Merge branch 'pr-ios-style-address-label' into pr-ios-webview-top-to-top-edge
This is an automated email from the ASF dual-hosted git repository.
manuelbeck pushed a commit to branch pr-ios-overlay-toolbar-address-label-on-webview
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git
commit 6dfc811484c40a256ad42af121247318c951b1ae
Merge: 9e8e8ac ea19395
Author: Manuel Beck <ma...@outlook.de>
AuthorDate: Sat Feb 28 19:47:55 2026 +0100
Merge branch 'pr-ios-style-address-label' into pr-ios-webview-top-to-top-edge
src/ios/CDVWKInAppBrowser.h | 1 +
src/ios/CDVWKInAppBrowser.m | 64 ++++++++++++++++++++++++++++++++-------------
2 files changed, 47 insertions(+), 18 deletions(-)
diff --cc src/ios/CDVWKInAppBrowser.m
index f059e84,fa28f94..b036005
--- a/src/ios/CDVWKInAppBrowser.m
+++ b/src/ios/CDVWKInAppBrowser.m
@@@ -927,12 -949,14 +949,14 @@@ BOOL isExiting = NO
// Case 3: Toolbar not visible, Address label visible
if (!toolbarVisible && addressLabelVisible) {
- // Webview top to safe area top
- [self.webView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor].active = YES;
+ // Webview top to top edge
+ [self.webView.topAnchor constraintEqualToAnchor:self.view.topAnchor].active = YES;
- // Address label top to WebView bottom
- [self.addressLabel.topAnchor constraintEqualToAnchor:self.webView.bottomAnchor].active = YES;
- // Address label bottom to safe area bottom
- [self.addressLabel.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = YES;
+ // Address background top to WebView bottom with margin
+ [self.addressBackgroundView.topAnchor constraintEqualToAnchor:self.webView.bottomAnchor
+ constant:addressBackgroundTopBottomMargin].active = YES;
+ // Address background bottom to safe area bottom with margin, margin must be negativ here
+ [self.addressBackgroundView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor
+ constant:addressBackgroundTopBottomMargin *-1].active = YES;
}
// Case 4: Toolbar visible and Address label visible
@@@ -950,12 -976,14 +976,14 @@@
// Toolbar is at bottom (default)
} else {
- // WebView top to safe area top
- [self.webView.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor].active = YES;
+ // WebView top to top edge
+ [self.webView.topAnchor constraintEqualToAnchor:self.view.topAnchor].active = YES;
- // WebView bottom to Address label top
- [self.webView.bottomAnchor constraintEqualToAnchor:self.addressLabel.topAnchor].active = YES;
- // Address label bottom to Toolbar top
- [self.addressLabel.bottomAnchor constraintEqualToAnchor:self.toolbar.topAnchor].active = YES;
+ // Address background top to WebView bottom with margin
+ [self.addressBackgroundView.topAnchor constraintEqualToAnchor:self.webView.bottomAnchor
+ constant:addressBackgroundTopBottomMargin].active = YES;
+ // Address background bottom to Toolbar top with margin, margin must be negativ here
+ [self.addressBackgroundView.bottomAnchor constraintEqualToAnchor:self.toolbar.topAnchor
+ constant:addressBackgroundTopBottomMargin *-1].active = YES;
// Toolbar bottom to safe area bottom
[self.toolbar.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor].active = YES;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org