Author: mbosma
Date: Sun Jun 11 19:16:48 2006
New Revision: 22313
URL:
http://svn.reactos.ru/svn/reactos?rev=22313&view=rev
Log:
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.
Modified:
trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp
Modified: trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/shell/explorer/taskbar…
==============================================================================
--- trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp (original)
+++ trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp Sun Jun 11 19:16:48 2006
@@ -1482,7 +1482,7 @@
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;