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

Double clicking data-tauri-drag-region ignores window resizable flag. #2314

Closed
nicolaic opened this issue Jul 28, 2021 · 0 comments
Closed

Comments

@nicolaic
Copy link

nicolaic commented Jul 28, 2021

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Configure your window to have resizeable as false
  2. Create an HTML element with the data-tauri-drag-region attribute
  3. Double click the HTML element, and the window maximizes

Expected behavior

Because the window is configured to not be resizable, it should not be maximized when double clicking the HTML element with the data-tauri-drag-region attribute.

Platform and Versions (required):

Operating System - Windows, version 10.0.19042 X64
Webview2 - 92.0.902.55

Node.js environment
  Node.js - 14.17.0
  @tauri-apps/cli - 1.0.0-beta.6
  @tauri-apps/api - Not installed

Global packages
  npm - 7.9.0
  yarn - 1.22.10

Rust environment
  rustc - 1.53.0
  cargo - 1.53.0

App directory structure
/.git
/app
/node_modules
/src-tauri

App
  tauri.rs - 1.0.0-beta.5
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../app/dist
  devPath - http://localhost:8000

Additional context

While it says @tauri-apps/api is not installed, this is not correct. I've put the code for my frontend in a sub-directory where it is installed.

This portion of core.js seems to be relevant to this issue.

@nicolaic nicolaic changed the title Double clicking data-tauri-drag-region ignores window resizable option. Double clicking data-tauri-drag-region ignores window resizable flag. Jul 28, 2021
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

1 participant