You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program crashes when the terminal width is less than max (min hlim a) (min hlim b), and this happens both when the initial terminal size is too small and when I manually resize terminal width after program start.
importBrickimportBrick.Widgets.Centerui::Widget
ui = hCenter . hLimit hlim $ vBox [s a 'A', s b 'B']
where
s x c = str .take x $repeat c
hlim =100
a =60
b =40main::IO()
main = simpleMain ui
The error I got is Main.hs: row 0 now exceeds region width.
I've pushed a fix in 5ed4955. This behavior could come up in a few different settings and it should now be avoided in all cases. Care to try this against your own project? Once you're satisfied, feel free to close this issue (or let me know what else I can do).
The following program crashes when the terminal width is less than
max (min hlim a) (min hlim b)
, and this happens both when the initial terminal size is too small and when I manually resize terminal width after program start.The error I got is
Main.hs: row 0 now exceeds region width
.Not sure if this is a duplicate of #47 .
The text was updated successfully, but these errors were encountered: