diff options
author | Jeffas <dev@jeffas.io> | 2019-07-16 20:21:28 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-17 16:00:49 -0400 |
commit | 4991c344ab754922e9af558c59d9797c7e5ce5cf (patch) | |
tree | 5dbbda21ba5c7bde5c87e0abca9ec6770009650c /commands/util.go | |
parent | 06af5391a37f5bb59571a641ad832e45d8f39f1e (diff) |
Fix grid widths when using weighted widths
If the column weights do not collectively divide the extent of the grid
layout then some width was not used and so would not be redrawn,
resulting in previous drawings showing through.
This fixes this by checking if there is any remainingExact width and if
there is it is assigned to the weighted columns by their proportion from
left to right.
Diffstat (limited to 'commands/util.go')
0 files changed, 0 insertions, 0 deletions