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] setSize do not work #11878

Closed
songjiachao opened this issue Dec 6, 2024 · 2 comments
Closed

[bug] setSize do not work #11878

songjiachao opened this issue Dec 6, 2024 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@songjiachao
Copy link

Describe the bug

setSize do not work

const observeQuickerHeight = () => {
var observer = new ResizeObserver(function (entries) {
entries.forEach(function (item) {
quickerWindow?.setSize(new LogicalSize(960, item.contentRect.height));
});
});
observer.observe(quickerRef.value!);
};

2024-12-06.160135_compressed.mp4

Reproduction

No response

Expected behavior

No response

Full tauri info output

PS D:\code\fun-family\app\desktop> cargo tauri info

[✔] Environment
    - OS: Windows 10.0.22000 X64
    ✔ WebView2: 131.0.2903.70
    ✔ MSVC: Visual Studio 生成工具 2022
    ✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
    ✔ cargo: 1.80.1 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 22.6.0
    - pnpm: 9.12.2
    - npm: 10.8.2

[-] Packages
    - tauri [RUST]: 2.1.1 (no manifest)
    - tauri-build [RUST]: 2.0.3 (no manifest)
    - wry [RUST]: 0.47.2 (no manifest)
    - tao [RUST]: 0.30.8 (no manifest)
    - tauri-cli [RUST]: 2.0.0-rc.3
    - @tauri-apps/api [NPM]: 2.1.1
    - @tauri-apps/cli [NPM]: 2.0.0-rc.3 (outdated, latest: 2.1.0)

[-] App
    - build-type: bundle
    - CSP: font-src https://fonts.gstatic.com 'self' asset: http://asset.localhost; frame-src https: asset: http://asset.localhost; img-src  'self' asset: http://asset.localhost blob: data: https: http://api.iconify.design http://fun.vmic.xyz; default-src 'self' customprotocol: asset:; media-src https://h5-inside.vmic.xyz/fun/assets/why-fun.mp4; style-src 'unsafe-inline' 'self' https://fonts.googleapis.com; script-src 'unsafe-eval' 'self'; connect-src ipc: tauri: http: ws: https:; object-src 'self' asset: http://asset.localhost
    - frontendDist: ../dist
    - devUrl: http://127.0.0.1:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

No response

Additional context

No response

@songjiachao songjiachao added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 6, 2024
@FabianLars
Copy link
Member

fixed on the next release, thanks. ref tauri-apps/tao#1007

@songjiachao
Copy link
Author

When the next version publish . I need this fixed.

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

No branches or pull requests

2 participants