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] Positioning window with config does not work under certain conditions #442

Closed
tauri-bot opened this issue Jun 22, 2022 · 0 comments · Fixed by #456 or #462
Closed

[bug] Positioning window with config does not work under certain conditions #442

tauri-bot opened this issue Jun 22, 2022 · 0 comments · Fixed by #456 or #462

Comments

@tauri-bot
Copy link

This issue has been upstreamed from tauri-apps/tauri#4445

Describe the bug

Positioning the window at the top-left works with this very config:

"windows": [
      {
        "x": 0.0,
        "y": 0.0,
        "height": 1080,
        "width": 1980,
        "title": "John Doe",
        "maximized": true,
        "decorations": true
      }
    ]

But as soon as I set "resizable": false the window positioning does not work which means the window is not at [0,0].
image
Also, funnily, when I disable maximization and enable resizability the window is only slighty (~5px) misplaced.

Reproduction

  1. Create a project with tauri cli 1.0.0
  2. Try config as shown above

Expected behavior

Place window correctly in all cases

Platform and versions

Environment
  › OS: Manjaro 21.3.0 X64
  › Node.js: 18.3.0
  › npm: 8.5.5
  › pnpm: 7.2.0
  › yarn: 1.22.11
  › rustup: 1.24.3
  › rustc: 1.63.0-nightly
  › cargo: 1.63.0-nightly
  › Rust toolchain: nightly-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: 1.0.0,
  › tauri-build [RUST]: 1.0.0,
  › tao [RUST]: 0.11.2,
  › wry [RUST]: 0.18.3,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:3333/
  › framework: Vue.js

App directory structure
  ├─ .git
  ├─ .vscode
  ├─ node_modules
  ├─ public
  ├─ src
  └─ src-tauri

Gnome: 42.2
Windowing-System: X11
SO: Manjaro

Stack trace

No response

Additional context

No response

@keiya01 keiya01 linked a pull request Jul 5, 2022 that will close this issue
13 tasks
amrbashir pushed a commit that referenced this issue Jul 11, 2022
* fix: miximizing window on linux

* chor: remove unnecessary line

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

Successfully merging a pull request may close this issue.

2 participants