Skip to content

[bug] webview content disappears when resizing window with devtools open #3914

Description

@ottosson

Describe the bug

When I have an application with any content and open the devtools, then resize the window, the content will be shifted upwards out of the view. Never to be able to scroll it in to view again until I restart the application:

disappearing content

Reproduction

start application with any content
open devtools
resize window

Expected behavior

The content should not disappear upwards

Platform and versions

Environment
  › OS: Mac OS 12.3.1 X64
  › Node.js: 15.11.0
  › npm: 7.6.0
  › pnpm: Not installed!
  › yarn: 1.22.17
  › rustup: 1.24.3
  › rustc: 1.59.0
  › cargo: 1.59.0
  › Rust toolchain: stable-x86_64-apple-darwin 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.7(outdated, latest: 1.0.0-rc.8)
  › @tauri-apps/api [NPM]: 1.0.0-rc.3(outdated, latest: 1.0.0-rc.3)
  › tauri [RUST]: 1.0.0-rc.6,
  › tauri-build [RUST]: 1.0.0-rc.5,
  › tao [RUST]: 0.7.0,
  › wry [RUST]: 0.14.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:3000/
  › framework: React

App directory structure
  ├─ Res
  ├─ dist
  ├─ node_modules
  ├─ src-tauri
  └─ src

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions