Commit 178ef449 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

rebar: In AutoSize get the window rc after REBAR_Layout if needed to respect the…

rebar: In AutoSize get the window rc after REBAR_Layout if needed to respect the sizing changes made by REBAR_Layout.
parent af369106
......@@ -1516,9 +1516,9 @@ REBAR_AutoSize(REBAR_INFO *infoPtr, BOOL needsLayout)
RECT rc, rcNew;
NMRBAUTOSIZE autosize;
GetClientRect(infoPtr->hwndSelf, &rc);
if (needsLayout)
REBAR_Layout(infoPtr);
GetClientRect(infoPtr->hwndSelf, &rc);
REBAR_SizeToHeight(infoPtr, get_rect_cy(infoPtr, &rc));
GetClientRect(infoPtr->hwndSelf, &rcNew);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment