Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

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

Open web3d0 opened this issue 1 year ago • 3 comments

  • [*] This is a new bug that hasn't been documented in a closed issue or in the Readme.

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.

web3d0 avatar May 06 '24 13:05 web3d0

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.

rxhanson avatar May 07 '24 05:05 rxhanson

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.

web3d0 avatar May 07 '24 05:05 web3d0

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

rxhanson avatar May 07 '24 05:05 rxhanson

This one should have been fixed in v0.80, let me know if that's not the case.

rxhanson avatar Jul 21 '24 15:07 rxhanson

Yep, fixed.

web3d0 avatar Jul 22 '24 15:07 web3d0