Skip to content

Cannot resize window when decorations are disabled #3409

Description

@jamesWalker55

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?

If a window has decorations disabled, you cannot resize it.

Image

Example window:

iced::application(boot, update, view)
    .subscription(subscription)
    .antialiasing(true)
    .title("nk2view")
    .window(iced::window::Settings {
        size: [364.0, 90.0].into(),
        position: Default::default(),
        min_size: Some([120.0, 60.0].into()),
        max_size: None,
        resizable: true,
        decorations: false,
        platform_specific: iced::window::settings::PlatformSpecific {
            undecorated_shadow: true,
            corner_preference: iced::window::settings::platform::CornerPreference::DoNotRound,
            ..Default::default()
        },
        ..Default::default()
    })
    .run()

What is the expected behavior?

The window should be resizable

Version

crates.io release

Operating System

Windows

Do you have any log output?

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