dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

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

Open chipnertkj opened this issue 1 year ago • 5 comments

Feature Request

Disabling window decorations in tao when using dioxus-desktop prevents the window from being resized, as confirmed in https://github.com/tauri-apps/tao/issues/994#issuecomment-2442048551. 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 https://github.com/tauri-apps/tauri/issues/7900#issuecomment-1734677770 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

chipnertkj avatar Oct 28 '24 18:10 chipnertkj

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.

iKineticate avatar Dec 19 '24 11:12 iKineticate

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

LikeCrazyShawn avatar May 19 '25 16:05 LikeCrazyShawn

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.

keiko37 avatar May 20 '25 11:05 keiko37

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

LikeCrazyShawn avatar May 20 '25 13:05 LikeCrazyShawn

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

safwa1 avatar Jun 18 '25 05:06 safwa1