You've already forked lazarus-ccr
fix TToolBar on frames
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1194 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -674,7 +674,7 @@ procedure TToolbarButton.UpdateSize;
|
||||
var
|
||||
AWidth:integer;
|
||||
begin
|
||||
if csLoading in TToolbarItems(FOwnerItem.Collection).FToolPanel.ComponentState then exit;
|
||||
{ if csLoading in TToolbarItems(FOwnerItem.Collection).FToolPanel.ComponentState then exit;
|
||||
|
||||
if Assigned(TToolbarItems(FOwnerItem.Collection).FToolPanel.FImageList) then
|
||||
begin
|
||||
@ -683,9 +683,9 @@ begin
|
||||
AWidth:= AWidth + Canvas.TextWidth(Caption) + Spacing;
|
||||
end
|
||||
else
|
||||
AWidth:=Canvas.TextWidth(Caption);
|
||||
AWidth:=Canvas.TextWidth(Caption);}
|
||||
|
||||
SetBounds(Left, Top, AWidth, Height);
|
||||
SetBounds(Left, Top, Width, Height);
|
||||
Invalidate;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user