From 952ee69bb7caac33077e4c15f61ee4845e1b5811 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 19 Nov 2005 02:47:18 +0000 Subject: [PATCH] Set list box minimum width (to account for mouse "icons") when no help buffer available. --- src/uifc/uifc32.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index 86c2ba9619..8f88c1a372 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -561,8 +561,13 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar width=j; } } - if(!(mode&WIN_NOBRDR) && api->mode&UIFC_MOUSE && bline&BL_HELP && width<8) - width=8; + /* Determine minimum widths here to accomodate mouse "icons" in border */ + if(!(mode&WIN_NOBRDR) && api->mode&UIFC_MOUSE) { + if(bline&BL_HELP && width<8) + width=8; + else if(width<5) + width=5; + } if(width>(s_right+1)-s_left) { width=(s_right+1)-s_left; if(title_len>(width-hbrdrsize-2)) { -- GitLab