LCL: TToolBar: fixed layout when Horizontal and rows right to left, bug #26962

git-svn-id: trunk@46888 -
This commit is contained in:
mattias 2014-11-19 16:18:35 +00:00
parent ca7db2fdc6
commit 09f76fa935

View File

@ -868,7 +868,10 @@ begin
end;
// adjust NewWidth, NewHeight
NewWidth := Max(NewWidth, x + w + AdjustClientFrame.Right);
if Vertical or RowsLeftToRight then
NewWidth := Max(NewWidth, x + w + AdjustClientFrame.Right)
else
NewWidth := Max(NewWidth, ARect.Right - x + ARect.Left + AdjustClientFrame.Right);
NewHeight := Max(NewHeight, y + h + AdjustClientFrame.Bottom);
// step to next position