FIX: Display tool button menu under the button not under the toolbar in case the toolbar has multiple lines.

This commit is contained in:
cobines 2012-04-12 12:11:49 +00:00
commit 19e6bf2a9f

View file

@ -607,7 +607,7 @@ begin
FToolPopupMenu := TPopupMenu.Create(Self);
MakeMenu(FToolPopupMenu.Items, ToolButton.ToolItem as TKASMenuItem);
Point.x := ToolButton.Left;
Point.y := ToolButton.Top + Self.Height;
Point.y := ToolButton.Top + ToolButton.Height;
Point := Self.ClientToScreen(Point);
FToolPopupMenu.PopUp(Point.x, Point.y);
end;