rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.1k stars 741 forks source link

When the front-end program is the App Store, use the middle 1/3, unknown error after adjustment #1330

Open DevLiuSir opened 5 months ago

DevLiuSir commented 5 months ago

When the front-end program is the App Store, the window position is wrong after using the middle 1/3 adjustment.

iShot_2024-01-27_15 19 32
rxhanson commented 5 months ago

This is due to a minimum size of the window being greater than 1/3 of your display. It would be possible to check the window size post-adjustment and center it if the window is not centered, but my preference is to leave it starting at x=1/3 of the display so that it tiles nicely with a window you could have placed at first 1/3. So, this is working as expected in this scenario despite it looking wrong.

DevLiuSir commented 5 months ago

You can refer to the processing of magnet. When the width of the front window cannot be reduced, a pop-up window is used to inform the user. Cannot adjust to a narrower width. Then what is set is one-half of the current screen.