LCL, Win32: don't increase TEdit's PreferredHeight to accomodate for border when TEdit.AutoSize=True and TEdit.BorderStyle=bsNone, patch from Anton, bug #23930

git-svn-id: trunk@40409 -
This commit is contained in:
maxim 2013-02-25 22:10:42 +00:00
parent 0909c77620
commit e79302ec8c

View File

@ -1160,7 +1160,8 @@ begin
if MeasureText(AWinControl, 'Fj', PreferredWidth, PreferredHeight) then
begin
PreferredWidth := 0;
Inc(PreferredHeight, 8);
if TCustomEdit(AWinControl).BorderStyle <> bsNone then
Inc(PreferredHeight, 8);
end;
end;