Browse Source

docked toolbar button order

johann 5 years ago
parent
commit
9a5563f960
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lazpaint/umainformlayout.pas

+ 2 - 0
lazpaint/umainformlayout.pas

@@ -443,6 +443,8 @@ begin
       FPanelToolBox.Width := w;
       if FToolBoxDocking = twLeft then FPanelToolBox.Left:= Left
       else FPanelToolBox.Left:= Right-FPanelToolBox.Width;
+      for i := 0 to FDockedToolBoxToolBar.ButtonCount-1 do
+        FDockedToolBoxToolBar.Buttons[i].Top := i*FDockedToolBoxToolBar.ButtonHeight;
     end;
     if not FPanelToolBox.Visible then
     begin