Skip to content

macOS resize event does not update dimensions of resized window #2187

@scrmea

Description

@scrmea

On macOS, tauri reports the initial screen dimensions to a resizable window while adjusting its dimensions. Every event fired while dragging contains the dimensions that the window had when launching the app, instead of the current window dimensions.

To Reproduce

listen("tauri://resize", ({ event: _, payload }) => console.log(payload))

Expected behavior

console logs an object with current window dimensions.

Platform and Versions (required):

Operating System - Mac OS, version 11.4.0 X64
Operating System - Mac OS, version 10.15 X64

Node.js environment
  Node.js - 16.2.0
  @tauri-apps/cli - 1.0.0-beta.5
  @tauri-apps/api - 1.0.0-beta.4

Global packages
  npm - 7.19.1
  yarn - 1.22.10

Rust environment
  rustc - 1.55.0-nightly
  cargo - 1.54.0-nightly

Metadata

Metadata

Assignees

Labels

Type

No type
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