Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jbaudanza
Copy link

Currently, the value of work_area.position.y is returning 0. On a screen with a menubar, this should be something like 38. This makes it difficult to position windows at the top of the screen correctly.

This calculation was originally set in #13309, however the math seems incorrect.

This calculation was removed in #13401, which set the value back to 0.

You can set the window position to 0, and it seems the system will (usually, not always) move the window below the menu bar. However, it would be better if I can just directly move the window to where it should be (y=38).

The PR attempts to correct the calculation for position.y. It takes into account the bottom-up coordinate system used by visible_frame. It should work correctly regardless of the menu bar size and presence.

@jbaudanza jbaudanza requested a review from a team as a code owner December 14, 2025 20:57
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Dec 14, 2025
@github-actions
Copy link
Contributor

Package Changes Through 9dcc0cf

There are 4 changes which include tauri-utils with patch, tauri-build with patch, tauri-cli with patch, tauri with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.8.1 2.8.2
tauri-bundler 2.7.5 2.7.6
tauri-runtime 2.9.2 2.9.3
tauri-runtime-wry 2.9.3 2.9.4
tauri-codegen 2.5.2 2.5.3
tauri-macros 2.5.2 2.5.3
tauri-plugin 2.5.2 2.5.3
tauri-build 2.5.3 2.5.4
tauri 2.9.5 2.9.6
@tauri-apps/cli 2.9.6 2.9.7
tauri-cli 2.9.6 2.9.7

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

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

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

1 participant