Skip to content

docs: document webview sizing styles - #8361

Open
Rajesh270712 wants to merge 1 commit into
nwjs:mainfrom
Rajesh270712:bountyops/bou-3064-webview-sizing-note
Open

Rajesh270712 wants to merge 1 commit into
nwjs:mainfrom
Rajesh270712:bountyops/bou-3064-webview-sizing-note

Conversation

@Rajesh270712

Copy link
Copy Markdown

Summary

  • Document the CSS sizing requirements for <webview> so full-window/parent-filling use cases have a concrete example.
  • Add the document contributor entry required by the docs contribution checklist.

Linked issue / bounty

Problem

The issue thread shows that <webview> sizing can look broken unless the embedder page gives the element and its parent explicit sizing and a flex-compatible display. The workaround is discussed in the issue, but the reference page did not mention it.

Fix

This PR adds a docs-only note to docs/References/webview Tag.md explaining the layout requirement and includes a minimal full-window example using display: inline-flex, width: 100%, and height: 100%.

Validation

  • git diff --check origin/main...HEAD
  • python3 -m venv .venv && .venv/bin/python -m pip install -r requirements.txt && .venv/bin/mkdocs build
  • Generated HTML/source content check for predictable sizing, full-window, inline-flex, width: 100%, and height: 100%
  • GitHub issue rechecked open; no open same-surface PRs found

Risk / limitations

  • Docs-only change; no NW.js runtime behavior is changed or claimed.
  • The example is intentionally minimal and may need wording/placement tweaks if maintainers prefer a different style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The webview tag is not sized properly

1 participant