Skip to content
Snippets Groups Projects
Commit 952ee69b authored by rswindell's avatar rswindell
Browse files

Set list box minimum width (to account for mouse "icons") when no help buffer

available.
parent 13c129a0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
/* 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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment