Skip to content

Can't keep the size of a button or container from being compressed #3167

@jlj001031

Description

@jlj001031

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

I can't control the size of a button or container to always be fixed, as long as the window or parent container is compressed, the size of these containers will be compressed instead of intercepted, which will cause the UI to be confusing and uncomfortable when stretching the window

2025-12-28.14-00-50.mp4

What is the expected behavior?

When a window or parent container is stretched, the size of the internal elements should remain fixed

Version

crates.io release

Operating System

Windows

Do you have any log output?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions