mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 05:39:31 +03:00
ui: reg: more width calculation voodoo
This commit is contained in:
parent
b6e98499ef
commit
5eca4bb70e
@ -118,7 +118,7 @@ drawRegisterScreen2 AppState{aopts=_opts, aScreen=RegisterScreen2{rs2State=l}} =
|
||||
balwidth = min maxbalwidth maxbalwidthseen
|
||||
|
||||
-- assign the remaining space to the description and accounts columns
|
||||
maxdescacctswidth = totalwidth - (whitespacewidth - 4) - changewidth - balwidth
|
||||
maxdescacctswidth = max 0 (totalwidth - datewidth - changewidth - balwidth - (whitespacewidth - 2))
|
||||
-- allocating proportionally.
|
||||
-- descwidth' = maximum' $ map (length . second5) displayitems
|
||||
-- acctswidth' = maximum' $ map (length . third5) displayitems
|
||||
|
Loading…
Reference in New Issue
Block a user