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] [v2] when enable unstable feature,the window just can resize from top bar. #9634

Open
Xiaobaishushu25 opened this issue May 1, 2024 · 1 comment
Labels
scope: unstable flag Issue only occures with "unstable" feature flag enabled status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Xiaobaishushu25
Copy link

Describe the bug

when enable unstable feature,the window just can resize from top bar.

Reproduction

add this to Cargo.toml: tauri = { version = "2.0.0-beta", features = ["unstable"] } and run,you will find you just can resize the window from top bar even you have set the window config:resizable is true;
this is when i did't enable unstable feature:

stable.mp4

then i have not change any other config and code, just enable unstable feature

unsta.mp4

because i need to use https://beta.tauri.app/features/window-state/, i need to get the window by: app.get_window("main").unwrap() , It seems that the unstable function must be enabled to achieve this.

Expected behavior

No response

Full tauri info output

PS F:\WorkSpace\Rust\RustRover\trade_tip> pnpm run tauri info

> trade_tip@0.0.0 tauri F:\WorkSpace\Rust\RustRover\trade_tip
> tauri "info"

WARNING: Only one package manager should be used, but found npm and pnpm.
         Please remove unused package manager lock files, will use npm for now!

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 124.0.2478.67
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.77.0 (aedd173a2 2024-03-17)
    ✔ cargo: 1.77.0 (3fe68eabf 2024-02-29)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.1
    - pnpm: 8.15.3
    - yarn: 1.22.19
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.17
    - tauri-build [RUST]: 2.0.0-beta.13
    - wry [RUST]: 0.39.3
    - tao [RUST]: 0.27.0
    - tauri-cli [RUST]: 1.4.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.7
    - @tauri-apps/cli [NPM]: 2.0.0-beta.12

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



### Stack trace

_No response_

### Additional context

_No response_
@Xiaobaishushu25 Xiaobaishushu25 added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 1, 2024
@Xiaobaishushu25
Copy link
Author

and i also find another problem, it doesn't seem like the problem was caused by tauri, but it does happen when the enable unstable feature :

stable-echarts.mp4
unstable-echarts.mp4

It's all the same operation: minimize the window and restore, but when enable unstable feature , the rendering of echarts is abnormal. It seems that the size of its container has been restored normally, but the chart did not obtain the correct width and height. This doesn't seem to be a problem with tauri, but if it's not enable unstable feature, there won't be such an abnormal situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: unstable flag Issue only occures with "unstable" feature flag enabled status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants