diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-04-14 08:18:18 -0700 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-04-14 09:01:45 -0700 |
commit | 4d809023d356c6094725d6558c2c5757075c7234 (patch) | |
tree | 10f46e26a65cf1f0fe92d403e0557651f654c85c /widgets | |
parent | e185593334611bb7cedd5ff8d3df6657d7dbc1f6 (diff) |
Code cleanup
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/proc.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/proc.go b/widgets/proc.go index cd48219..89ef58c 100644 --- a/widgets/proc.go +++ b/widgets/proc.go @@ -140,7 +140,11 @@ func (self *Proc) ColResize() { self.X - self.Gap - self.ColWidths[3], } - rowWidth := self.Gap + self.ColWidths[0] + self.Gap + self.ColWidths[1] + self.Gap + self.ColWidths[2] + self.Gap + self.ColWidths[3] + self.Gap + rowWidth := self.Gap + + self.ColWidths[0] + self.Gap + + self.ColWidths[1] + self.Gap + + self.ColWidths[2] + self.Gap + + self.ColWidths[3] + self.Gap // only renders a column if it fits if self.X < (rowWidth - self.Gap - self.ColWidths[3]) { |