Author: gadamopoulos
Date: Thu Aug 18 13:24:16 2016
New Revision: 72326
URL:
http://svn.reactos.org/svn/reactos?rev=72326&view=rev
Log:
[BROWSEUI]
- CInternetToolbar: Fix resizing the top rebar. Works in windows (but not in ros).
Modified:
trunk/reactos/dll/win32/browseui/internettoolbar.cpp
Modified: trunk/reactos/dll/win32/browseui/internettoolbar.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/interne…
==============================================================================
--- trunk/reactos/dll/win32/browseui/internettoolbar.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/internettoolbar.cpp [iso-8859-1] Thu Aug 18 13:24:16
2016
@@ -646,9 +646,9 @@
if (FAILED_UNEXPECTEDLY(hResult))
return hResult;
- if (availableBorderSpace.top > maxHeight)
- {
- availableBorderSpace.top = maxHeight;
+ if (maxHeight && availableBorderSpace.bottom - availableBorderSpace.top >
maxHeight)
+ {
+ availableBorderSpace.bottom = availableBorderSpace.top + maxHeight;
}
return ResizeBorderDW(&availableBorderSpace, fSite, FALSE);
@@ -742,7 +742,7 @@
SendMessage(fMainReBar, RB_SETBANDINFOW, x, (LPARAM)&rebarBandInfo);
}
}
- hResult = ReserveBorderSpace();
+ hResult = ReserveBorderSpace(0);
// TODO: refresh view menu?
}