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] multiwebview appears to only render the last child. #11376

Open
hatched opened this issue Oct 15, 2024 · 10 comments
Open

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

hatched opened this issue Oct 15, 2024 · 10 comments
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

@hatched
Copy link

hatched commented Oct 15, 2024

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: #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 hatched added status: needs triage This issue needs to triage, applied to new issues type: bug labels Oct 15, 2024
@FabianLars FabianLars added the scope: unstable flag Issue only occures with "unstable" feature flag enabled label Oct 17, 2024
@ahqsoftwares
Copy link
Contributor

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

@hatched
Copy link
Author

hatched commented Oct 18, 2024

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

@ahqsoftwares
Copy link
Contributor

Its the multiwebview example right? I have a windows machine

@ahqsoftwares
Copy link
Contributor

image
windows works

@ahqsoftwares
Copy link
Contributor

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

@ahqsoftwares
Copy link
Contributor

Lemme share the full experience

@ahqsoftwares
Copy link
Contributor

20241018_224049.mp4

@ahqsoftwares
Copy link
Contributor

ahqsoftwares commented Oct 19, 2024

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

@xuchaoqian
Copy link
Contributor

xuchaoqian commented Nov 7, 2024

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
Copy link
Contributor

Fixed by this patch

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

4 participants