LCL, fix TUpDown bounds which may cause disappearing of button on some sizes, issue #23941

git-svn-id: trunk@40435 -
This commit is contained in:
jesus 2013-02-27 16:40:28 +00:00
parent 24fdf2be90
commit f8463d9cc9

View File

@ -271,12 +271,12 @@ begin
If FOrientation = udHorizontal then begin
d:=ClientWidth div 2;
MinBtn.SetBounds(0,0,d,ClientHeight);
MaxBtn.SetBounds(ClientHeight-d,0,d,ClientHeight);
MaxBtn.SetBounds(d,0,d,ClientHeight);
end
else begin
d:=ClientHeight div 2;
MaxBtn.SetBounds(0,0,ClientWidth,d);
MinBtn.SetBounds(0,ClientWidth-d,ClientWidth,d);
MinBtn.SetBounds(0,d,ClientWidth,d);
end;
end;