LCL: Fix inability to resize the height of a TCombobox having style csSimple at designtime in order to show the item listbox. Issue #37679. Patch by mgr.inz.Player.

git-svn-id: trunk@63857 -
This commit is contained in:
wp 2020-09-01 13:41:11 +00:00
parent afa0f73049
commit b4cc95fc28

View File

@ -1113,6 +1113,8 @@ end;
class procedure TWin32WSCustomComboBox.SetStyle(const ACustomComboBox: TCustomComboBox; NewStyle: TComboBoxStyle);
begin
RecreateWnd(ACustomComboBox);
if (NewStyle = csSimple) and (csDesigning in ACustomComboBox.ComponentState) then
ACustomComboBox.Constraints.SetInterfaceConstraints(0,0,0,0);
end;
class procedure TWin32WSCustomComboBox.SetReadOnly(const ACustomComboBox: TCustomComboBox;