DioxusLabs/dioxus

Missing functionality: Undecorated window resizing in `dioxus-desktop`

Opened this issue · 5 comments

Feature Request

Disabling window decorations in tao when using dioxus-desktop prevents the window from being resized, as confirmed in tauri-apps/tao#994 (comment).
dioxus does not provide the required API to bring drag-resizing back to a window without decorations.
This behavior prevents valid use cases like custom title bars. The user has to implement a lot of boilerplate for the webview to be resizable again.
tauri has their own implementation - I think dioxus should too.

See tauri-apps/tauri#7900 (comment) for an example of the behavior that appears when disabling a window's decorations and attempting to resize.
Note: the video only showcases attempts made at the upper-right corner. On my end, I am also completely unable to resize the window unless im dragging from the upper edge of the window, in which case it is still difficult to grab onto - the area is one pixel high.

Implement Suggestion

tauri implements this here: src/undecorated_resizing.rs

I completely agree with this suggestion. I’m also using Dioxus and encountered the same issue with window resizing when disabling window decorations. Without the proper API to enable drag-resizing on undecorated windows, it makes it difficult to implement features like custom title bars, as mentioned in the issue.

hi, may I know if this issue is fixed ? and which version if yes?

hi, may I know if this issue is fixed ? and which version if yes?

Also have this issue. As I see it hasn't been fixed yet.

can we prioritize this for near release? Undecorated window feature is important for people to build professional looking apps

hi, may I know if this issue is fixed ? and which version if yes?