tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] multiwebview appears to only render the last child.

Open hatched opened this issue 1 year ago • 8 comments

Describe the bug

Running the multiwebview example with cargo run --example multiwebview --features unstable presents me with an application window where only the last child is rendered.

Screenshot 2024-10-15 at 2 58 44 PM

Reproduction

  • git clone [email protected]:tauri-apps/tauri.git && cd tauri
  • cargo run --example multiwebview --features unstable

Expected behavior

It to render as in the PR: https://github.com/tauri-apps/tauri/pull/8280

img

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.6.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
    ✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.20.3
    - pnpm: 9.9.0
    - npm: 10.7.0

[-] Packages
    - tauri 🦀: 2.0.4
    - tauri-build 🦀: 2.0.1
    - wry 🦀: 0.46.1
    - tao 🦀: 0.30.2
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli : 2.0.3

[-] Plugins
    - tauri-plugin-log 🦀: 2.0.0-rc.2
    - @tauri-apps/plugin-log : not installed!

[-] App
    - build-type: bundle
    - CSP: default-src 'self'; connect-src ipc: http://ipc.localhost
    - frontendDist: ["index.html"]
    - bundler: Rollup

Stack trace

No response

Additional context

No response

hatched avatar Oct 15 '24 21:10 hatched

Can you confirm if the same occurs on windows and linux along with mac?

ahqsoftwares avatar Oct 18 '24 04:10 ahqsoftwares

Sorry I do not have a Linux or Windows machine available at this time.

hatched avatar Oct 18 '24 15:10 hatched

Its the multiwebview example right? I have a windows machine

ahqsoftwares avatar Oct 18 '24 16:10 ahqsoftwares

image windows works

ahqsoftwares avatar Oct 18 '24 17:10 ahqsoftwares

but initial load didn't work, window had to be resized for the webviews to be shown

ahqsoftwares avatar Oct 18 '24 17:10 ahqsoftwares

Lemme share the full experience

ahqsoftwares avatar Oct 18 '24 17:10 ahqsoftwares

https://github.com/user-attachments/assets/efe4794d-9485-42f7-a987-daf7c2343b53

ahqsoftwares avatar Oct 18 '24 17:10 ahqsoftwares

This issue is non existent in wry upstream. I am looking out for a fix

ahqsoftwares avatar Oct 19 '24 12:10 ahqsoftwares

I encountered the same bug: On macOS, it only shows the last child. On Windows, it only shows the last child initially and will display the other children after resizing.

xuchaoqian avatar Nov 07 '24 12:11 xuchaoqian

Fixed by this patch

xuchaoqian avatar Nov 08 '24 00:11 xuchaoqian