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

StandardButtons seem to be laid out differently #7844

Open
npwoods opened this issue Mar 10, 2025 · 1 comment
Open

StandardButtons seem to be laid out differently #7844

npwoods opened this issue Mar 10, 2025 · 1 comment
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@npwoods
Copy link
Contributor

npwoods commented Mar 10, 2025

Bug Description

For some reason, buttons of type StandardButton seem to have constrained width. In the attached sample, the Button widgets are wide but the StandardButton widgets are just big enough for the text payload.

Reproducible Code (if applicable)

import { AboutSlint, Button, VerticalBox, StandardButton } from "std-widgets.slint";

export component Demo {
    VerticalBox {
        alignment: start;
        StandardButton {
            kind: ok;
        }
        StandardButton {
            kind: cancel;
        }
        Button {
            text: "A";
        }
        Button {
            text: "B";
        }
        Button {
            text: "Frozzbozz";
        }
    }
}

Environment Details

  • Slint Version: 1.10
  • Platform/OS: Windows 10
  • Programming Language: Rust
  • Backend/Renderer: ?

Product Impact

No response

@npwoods npwoods added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Mar 10, 2025
@npwoods
Copy link
Contributor Author

npwoods commented Mar 10, 2025

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

1 participant