aboutsummaryrefslogtreecommitdiff
path: root/HACKING.md
diff options
context:
space:
mode:
authorS. Christoffer Eliesen <christoffer@eliesen.no>2015-12-22 12:36:20 +0100
committerS. Christoffer Eliesen <christoffer@eliesen.no>2015-12-28 14:58:17 +0100
commit6750975b9f91d3e0aa632add0f56fc4611b0853a (patch)
tree27b2b8d85c070a8f8c00aa5b5e561e9fd6d977ca /HACKING.md
parent831f6680f41ab2ed91e5a17694bdee802cd1e789 (diff)
arrange_windows_r: Round pixels to match reality, fixes calculations.
If the width or height of a container can't be evenly distributed to its children, then the layout algorithm still thought it got it right (due to using decimals) which caused a gap of one or more pixels for some window arrangements. This is fixed by this patch by first rounding off the width and height (so that decimals are never introduced) and then adjusting the last view in a container to fill the remaining pixels (which now is counted correctly due to the decimals being removed). Also, due to the way gaps are implemented, an odd sized gap can never be aligned properly, so just adjust to closest even number.
Diffstat (limited to 'HACKING.md')
0 files changed, 0 insertions, 0 deletions