mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 03:38:26 +02:00
win32: restore occasionally disabled spinedit autosize
git-svn-id: trunk@25280 -
This commit is contained in:
parent
748469c584
commit
b69a9ba57d
@ -257,13 +257,11 @@ class procedure TWin32WSCustomFloatSpinEdit.GetPreferredSize(
|
|||||||
const AWinControl: TWinControl; var PreferredWidth, PreferredHeight: integer;
|
const AWinControl: TWinControl; var PreferredWidth, PreferredHeight: integer;
|
||||||
WithThemeSpace: Boolean);
|
WithThemeSpace: Boolean);
|
||||||
begin
|
begin
|
||||||
{if MeasureTextForWnd(AWinControl.Handle, 'Fj', PreferredWidth, PreferredHeight) then
|
if MeasureTextForWnd(AWinControl.Handle, 'Fj', PreferredWidth, PreferredHeight) then
|
||||||
begin
|
begin
|
||||||
PreferredWidth := 0;
|
PreferredWidth := 0;
|
||||||
Inc(PreferredHeight, 8);
|
Inc(PreferredHeight, 8);
|
||||||
end;}
|
end;
|
||||||
PreferredHeight := 0;
|
|
||||||
PreferredWidth := 0;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TWin32WSCustomFloatSpinEdit.AdaptBounds(const AWinControl: TWinControl;
|
class procedure TWin32WSCustomFloatSpinEdit.AdaptBounds(const AWinControl: TWinControl;
|
||||||
|
Loading…
Reference in New Issue
Block a user