mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 21:55:56 +02:00
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:
parent
0909c77620
commit
e79302ec8c
@ -1160,7 +1160,8 @@ begin
|
|||||||
if MeasureText(AWinControl, 'Fj', PreferredWidth, PreferredHeight) then
|
if MeasureText(AWinControl, 'Fj', PreferredWidth, PreferredHeight) then
|
||||||
begin
|
begin
|
||||||
PreferredWidth := 0;
|
PreferredWidth := 0;
|
||||||
Inc(PreferredHeight, 8);
|
if TCustomEdit(AWinControl).BorderStyle <> bsNone then
|
||||||
|
Inc(PreferredHeight, 8);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user