docs: document webview sizing styles - #8361
Open
Rajesh270712 wants to merge 1 commit into
Open
Rajesh270712 wants to merge 1 commit into
Rajesh270712 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<webview>so full-window/parent-filling use cases have a concrete example.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.mdexplaining the layout requirement and includes a minimal full-window example usingdisplay: inline-flex,width: 100%, andheight: 100%.Validation
git diff --check origin/main...HEADpython3 -m venv .venv && .venv/bin/python -m pip install -r requirements.txt && .venv/bin/mkdocs buildpredictable sizing,full-window,inline-flex,width: 100%, andheight: 100%Risk / limitations