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

[bug] The minWidth of the window is invalid. #10227

Closed
GuoJikun opened this issue Jul 9, 2024 · 4 comments · Fixed by #10242
Closed

[bug] The minWidth of the window is invalid. #10227

GuoJikun opened this issue Jul 9, 2024 · 4 comments · Fixed by #10242
Assignees
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@GuoJikun
Copy link

GuoJikun commented Jul 9, 2024

Describe the bug

The minWidth of the window is invalid.

Reproduction

  1. create a tauri project
  2. set minWidth in tauri.config.json
  3. run command pnpm tauri dev

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.26100 X64
    ✔ WebView2: 126.0.2592.87
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.15.0
    - pnpm: 9.4.0
    - yarn: 1.22.22
    - npm: 10.7.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.23
    - tauri-build [RUST]: 2.0.0-beta.18
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.14
    - @tauri-apps/cli [NPM]: 2.0.0-beta.21

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

No response

Additional context

image

@GuoJikun GuoJikun added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jul 9, 2024
@FabianLars
Copy link
Member

Can you check if it works when you add a minHeight too? Maybe we re-introduced tauri-apps/tao#138 at some point 🤔

@amrbashir
Copy link
Member

Seems like we never adapted tauri APIs to tauri-apps/tao#759

@GuoJikun
Copy link
Author

Can you check if it works when you add a minHeight too? Maybe we re-introduced tauri-apps/tao#138 at some point 🤔

After adding 'minHeight' is normal

@amrbashir
Copy link
Member

I am working on a PR to fix this, will open tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants