rxhanson / Rectangle

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

1/6th size calculation for window is one pixel off for the right hand edge #1382

Open web3d0 opened 1 month ago

web3d0 commented 1 month ago

macOS version: 12.7.4 Rectangle version: 0.77 (83)

When selecting 1/4th on the right hand side, the scroll bar is positioned so I can just go to the right edge.

When selecting 1/6th on the right hand side, the window is one pixel to the left and scroll does not work at the edge.

rxhanson commented 1 month ago

This is likely due to the window not being able to resize down that small. There's kind of some grey area here on what the desired outcome for that scenario should be. It's been a while since I gave this some thought, and I'll plan to revisit this again for an upcoming release.

web3d0 commented 1 month ago

I just tested it, the window is able to resize smaller, and in fact needs to be one pixel larger. I suspect the problem is that my screen resolution is 2560 across, and the calculation is 2560 / 3 = 853 pixels, whereas for the scroll bar to be at the right hand edge, it needs to be 854 pixels.

rxhanson commented 1 month ago

That makes sense, thanks for the follow up. I'll slate this one for the next release, then.