mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:22:01 +08:00
Fix window position inconsistency in MacOS (#3479)
* Fix window position inconsistency in MacOS * Updated changelog
This commit is contained in:
parent
cf18fcfc1e
commit
d4dabc1289
@ -55,7 +55,7 @@ typedef void (^schemeTaskCaller)(id<WKURLSchemeTask>);
|
|||||||
|
|
||||||
NSScreen* screen = [self getCurrentScreen];
|
NSScreen* screen = [self getCurrentScreen];
|
||||||
NSRect windowFrame = [self.mainWindow frame];
|
NSRect windowFrame = [self.mainWindow frame];
|
||||||
NSRect screenFrame = [screen frame];
|
NSRect screenFrame = [screen visibleFrame];
|
||||||
windowFrame.origin.x = screenFrame.origin.x + (float)x;
|
windowFrame.origin.x = screenFrame.origin.x + (float)x;
|
||||||
windowFrame.origin.y = (screenFrame.origin.y + screenFrame.size.height) - windowFrame.size.height - (float)y;
|
windowFrame.origin.y = (screenFrame.origin.y + screenFrame.size.height) - windowFrame.size.height - (float)y;
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed optional type generation where an extra `?` would be placed inside the field name instead of outside the name `"field?"?` vs `"field"?`. Fixed by [@atterpac](https://github.com/atterpac) in [#3476](https://github.com/wailsapp/wails/pull/3476)
|
- Fixed optional type generation where an extra `?` would be placed inside the field name instead of outside the name `"field?"?` vs `"field"?`. Fixed by [@atterpac](https://github.com/atterpac) in [#3476](https://github.com/wailsapp/wails/pull/3476)
|
||||||
|
- Fixed an issue where `WindowGetPosition` and `WindowSetPosition` values were inconsistent on MacOS. Fixed by [@cenan](https://github.com/wailsapp/wails/pull/3479)
|
||||||
|
|
||||||
## v2.8.2 - 2024-05-08
|
## v2.8.2 - 2024-05-08
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user