mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 16:10:21 +02:00
LCL: TToolBar: fixed layout when Horizontal and rows right to left, bug #26962
git-svn-id: trunk@46888 -
This commit is contained in:
parent
ca7db2fdc6
commit
09f76fa935
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user