Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowBuilder::with_position does not work in dioxus 0.6 #3348

Closed
photino opened this issue Dec 13, 2024 · 1 comment
Closed

WindowBuilder::with_position does not work in dioxus 0.6 #3348

photino opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@photino
Copy link
Contributor

photino commented Dec 13, 2024

Problem

The docs say that with_position() sets a desired initial position for the window.
However, it does not work at all.

Steps To Reproduce

Steps to reproduce the behavior:

  • Config the WindowBuilder as follows
let app_window = WindowBuilder::new()
     .with_title(app_name)
     .with_maximized(true)
     .with_position(PhysicalPosition::<i32>::default());

Expected behavior

It should sets the initial position for the window.

Screenshots

Environment:

  • Dioxus version: 0.6
  • Rust version: 1.83
  • OS info: Windows
  • App platform: desktop

Questionnaire

I'm interested in fixing this myself but don't know where to start

@jkelleyrtp jkelleyrtp added this to the 0.6.2 milestone Jan 7, 2025
@jkelleyrtp jkelleyrtp added the bug Something isn't working label Jan 7, 2025
@jkelleyrtp
Copy link
Member

This should be fixed - our engine in dev mode that restores window sizes was overriding windows sizes even if you passed in a custom window size. We now only set position + size when those values are not set.

Fixed in #3608 and across many other issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants