mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 04:52:35 +02:00
win32 interface: don't restrict the height of a csSimple combobox (issue #13765)
git-svn-id: trunk@20109 -
This commit is contained in:
parent
9bd290d86e
commit
299f68fb06
@ -379,8 +379,8 @@ begin
|
||||
if (FSender is TCustomComboBox) and (TCustomComboBox(FSender).Style = csSimple) then
|
||||
begin
|
||||
// combobox workaround:
|
||||
// if style = csSimple FEditHeight = Edit Height + Listbox Height
|
||||
Result := FEditHeight;
|
||||
// if style = csSimple follow the LCL height.
|
||||
Result := FSender.Height;
|
||||
end else
|
||||
begin
|
||||
if Count = 0 then
|
||||
|
@ -797,6 +797,8 @@ class procedure TWin32WSCustomComboBox.AdaptBounds(const AWinControl: TWinContro
|
||||
var
|
||||
StringList: TWin32ComboBoxStringList;
|
||||
begin
|
||||
if TCustomComboBox(AWinControl).Style=csSimple
|
||||
then exit;
|
||||
StringList := GetStringList(TCustomComboBox(AWinControl));
|
||||
if StringList <> nil then
|
||||
Height := StringList.ComboHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user