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

Documentation: Unclear wording for HorizontalBox/VerticalBox. #7360

Open
wildwestrom opened this issue Jan 14, 2025 · 1 comment
Open

Documentation: Unclear wording for HorizontalBox/VerticalBox. #7360

wildwestrom opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
a:documentation Improvements or additions to documentation (infrastructure and text itself) (mN,bS) bug Something isn't working

Comments

@wildwestrom
Copy link

Bug Description

It says:

A `HorizontalBox` is a <Link type="HorizontalLayout" /> where instead of
having values that default to `0`, the spacing and padding values instead.

I don't know what that means. The spacing and padding values do what instead?
Do you mean, "...instead of having values that default to 0, the spacing and padding values are set to 0."?

Here are the relevant files.

verticalbox.mdx
horizontalbox.mdx

Reproducible Code (if applicable)

No response

Environment Details

This is just your website.

Product Impact

No response

@wildwestrom wildwestrom added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Jan 14, 2025
@ogoffart ogoffart added the a:documentation Improvements or additions to documentation (infrastructure and text itself) (mN,bS) label Jan 14, 2025
@ogoffart
Copy link
Member

Indeed, the 1.8 version was more explicit:

https://releases.slint.dev/1.8.0/docs/slint/src/language/widgets/horizontalbox.html#horizontalbox

A HorizontalBox is a HorizontalLayout where the spacing and padding values depend on the style instead of defaulting to 0.

@NigelBreslaw NigelBreslaw self-assigned this Jan 14, 2025
@NigelBreslaw NigelBreslaw removed the need triaging Issue that the owner of the area still need to triage label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:documentation Improvements or additions to documentation (infrastructure and text itself) (mN,bS) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants