Skip to content

The text in the button may tear when resizing the window #10931

@lzm-build

Description

@lzm-build

Bug Description

What is the bug?

The text in the button may tear when resizing the window.

What behavior did you expect, and what happened instead?

Normal rendering.

Steps to reproduce the issue?

git clone https://github.com/slint-ui/slint-rust-template.git
cd slint-rust-template
cargo run
Screencast_20260303_085031.webm

Reproducible Code (if applicable)

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

export component AppWindow inherits Window {
    in-out property <int> counter: 42;
    callback request-increase-value();
    default-font-size: 30px;
    VerticalBox {
        Text {
            text: "Counter: \{root.counter}";
        }

        Button {
            text: "Increase value";
            clicked => {
                root.request-increase-value();
            }
        }
    }
}

Environment Details

  • Slint Version: 1.15.1
  • Platform/OS: Fedora Linux 43 (KDE Plasma Desktop Edition)
  • Programming Language: Rust
  • Backend/Renderer: default

Product Impact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    need triagingIssue that the owner of the area still need to triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions