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

minHeight and maxWidth used together causes fixed window height on macOS #2163

Closed
scrmea opened this issue Jul 7, 2021 · 1 comment
Closed

Comments

@scrmea
Copy link

scrmea commented Jul 7, 2021

Describe the bug

Tauri docs mention the following configuration options:

minWidth
minHeight
maxWidth
maxHeight
resizable**?**

Those options do not work as expected on macOS.

Setting both minHeight and maxWidth cause the window to be of fixed height (minHeight) and it can only be resized in width hereafter.

To Reproduce

Steps to reproduce the behavior:
Add the following to tauri.conf.json:

"windows": [
      {
        "title": "Tauri App",
        "minHeight": 100,
        "maxWidth": 1200,
        "resizable": true
      }

open on macOS 11.4.

Expected behavior

The window opens at a default height/width and the window can be resized to 100 <= height, width <= 1200.

Platform and Versions (required):

Operating System - Mac OS, version 11.4.0 X64

Node.js environment
  Node.js - 16.2.0
  @tauri-apps/cli - 1.0.0-beta.3 (outdated, latest: 1.0.0-beta.5)
  @tauri-apps/api - Not installed

Global packages
  npm - 7.19.1
  yarn - 1.22.10

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

App directory structure
/dist
/node_modules
/public
/src-tauri
/.vscode
/src

App
  tauri.rs - 1.0.0-beta.2
  framework - Svelte

same result with

tauri = { git="https://github.com/tauri-apps/tauri", branch = "dev", features = ["fs-create-dir", "fs-read-text-file", "fs-write-file", "menu"] }

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

App
  tauri.rs - 1.0.0-beta.4
@amrbashir
Copy link
Member

this is fixed in the dev branch and will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants