mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 08:00:11 +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;
|
||||
WithThemeSpace: Boolean);
|
||||
begin
|
||||
{if MeasureTextForWnd(AWinControl.Handle, 'Fj', PreferredWidth, PreferredHeight) then
|
||||
if MeasureTextForWnd(AWinControl.Handle, 'Fj', PreferredWidth, PreferredHeight) then
|
||||
begin
|
||||
PreferredWidth := 0;
|
||||
Inc(PreferredHeight, 8);
|
||||
end;}
|
||||
PreferredHeight := 0;
|
||||
PreferredWidth := 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomFloatSpinEdit.AdaptBounds(const AWinControl: TWinControl;
|
||||
|
Loading…
Reference in New Issue
Block a user