Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): webview fill property #14099

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ public TiUIWebView(TiViewProxy proxy)
TiCompositeLayout.LayoutParams params = getLayoutParams();
params.autoFillsHeight = true;
params.autoFillsWidth = true;
if (proxy.hasProperty(TiC.LAYOUT_FILL) && TiConvert.toBoolean(proxy.getProperty(TiC.LAYOUT_FILL), false)) {
params.height = TiCompositeLayout.LayoutParams.MATCH_PARENT;
params.width = TiCompositeLayout.LayoutParams.MATCH_PARENT;
}

setNativeView(webView);
}
Expand Down
7 changes: 7 additions & 0 deletions apidoc/Titanium/UI/WebView.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,13 @@ properties:
since: "1.8.0"
default: true

- name: fill
summary: If `true` the body inside the WebView will have a height by default
type: Boolean
platforms: [android]
since: "12.6.0"
default: false

- name: mixedContentMode
summary: If `true`, allows the loading of insecure resources from a secure origin.
description: |
Expand Down
Loading