Fix size of the startmenu (e.g. Start->Programs) when there are very much entries. Tested under Windows. Fix by slawek from the German forum.

svn path=/trunk/; revision=22313
This commit is contained in:
Maarten Bosma 2006-06-11 15:16:48 +00:00
parent 47a7900e91
commit 64471203f9

View file

@ -1482,7 +1482,7 @@ void StartMenu::ResizeToButtons()
if (rect.bottom > cyscreen) {
_arrow_btns = true;
_invisible_lines = (rect.bottom-cyscreen+(STARTMENU_LINE_HEIGHT(icon_size)-1))/STARTMENU_SEP_HEIGHT(icon_size) + 1;
_invisible_lines = (rect.bottom-cyscreen+(STARTMENU_LINE_HEIGHT(icon_size)+1))/STARTMENU_LINE_HEIGHT(icon_size)+1;
rect.bottom -= _invisible_lines * STARTMENU_LINE_HEIGHT(icon_size);
bottom_max = rect.bottom;