docs: expand layout sizing controls - #8682
Merged
Merged
Conversation
Contributor
Author
|
CI note: the failed UI jobs are unrelated existing failures in Tabulator header-filter/frozen-column behavior, Gauge updates, and the server index proxy test. This PR changes only the layout sizing documentation. Pre-commit, core, unit, and the remaining UI matrices pass; there is no layout-doc code change that would address these failures. |
philippjfr
approved these changes
Jul 24, 2026
Member
|
Great explanation, and test failures indeed unrelated. Merging, thanks @Kkkakania! |
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
Expand the Control Size how-to guide with the sizing controls that were previously used or available but not explained:
min_width,max_width,min_height, andmax_heightand how they interact with responsive dimensionspn.extension(sizing_mode=...)andpn.config.sizing_modewidth_policy/height_policyvalues and their precedence oversizing_modeCloses #5381.
Validation
uvx pre-commit run --files doc/how_to/layout/size.mdAI disclosure: this documentation update was AI-assisted. I checked the behavior against
Layoutable, executed the examples, and ran the repository pre-commit hooks.