Panel length is not accurate on some resolutions
Submitted by Danilo Azevedo
Assigned to Nick Schermer
Description
Created attachment 7422 Demonstration of the issue
I have a monitor with screen resolution of 1366 x 768 and if I set the length of the panel to a percentage that results in a not interger number, the length of the panel won't be the expected.
Example:
Something I'm very used to do is to create 3 panels to have a center-aligned clock. If I do this on a 1600x900 resolution monitor, I get the expected result: Panel 0: 33% (528px) Panel 1: 34% (544px) Panel 2: 33% (528px) Total: 100% (1600px)
But if I do the same thing on a 1366x768 resolution monitor, the final values won't match: Panel 0: 33% (450.78px, 450 is used) Panel 1: 34% (464.44px, 464 is used) Panel 2: 33% (450.78px, 450 is used) Total: 100% (should be 1366, instead is 1064)
This results in some blank spots, as can be seen in the attached image.
One thing that can be done is to let the the user to set de length in pixels, instead of percentage, as sugested in bug #11093.
Attachment 7422, "Demonstration of the issue":
Version: 4.12.1