win32: restore occasionally disabled spinedit autosize

git-svn-id: trunk@25280 -
This commit is contained in:
paul 2010-05-09 16:08:05 +00:00
parent 748469c584
commit b69a9ba57d

View File

@ -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;