summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/combobox.cxx2
-rw-r--r--vcl/source/control/ilstbox.cxx3
-rw-r--r--vcl/source/control/lstbox.cxx2
3 files changed, 4 insertions, 3 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 9d04b7a2e30f..6dae2238da12 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -544,7 +544,7 @@ void ComboBox::EnableAutoSize( sal_Bool bAuto )
if ( mpFloatWin )
{
if ( bAuto && !mpFloatWin->GetDropDownLineCount() )
- mpFloatWin->SetDropDownLineCount( 5 );
+ mpFloatWin->SetDropDownLineCount( 16 );
else if ( !bAuto )
mpFloatWin->SetDropDownLineCount( 0 );
}
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 714f0db66e7b..23199fa39b2a 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -3229,7 +3229,7 @@ Size ImplListBoxFloatingWindow::CalcFloatSize()
// Minimale Hoehe, falls Hoehe nicht auf Float-Hoehe eingestellt wurde.
// Der Parent vom FloatWin muss die DropDown-Combo/Listbox sein.
Size aParentSz = GetParent()->GetSizePixel();
- if( !mnDDLineCount && ( aFloatSz.Height() < aParentSz.Height() ) )
+ if( (!mnDDLineCount || !nLines) && ( aFloatSz.Height() < aParentSz.Height() ) )
aFloatSz.Height() = aParentSz.Height();
// Nicht schmaler als der Parent werden...
@@ -3254,6 +3254,7 @@ Size ImplListBoxFloatingWindow::CalcFloatSize()
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
aFloatSz.Height() += nSBWidth;
}
+
return aFloatSz;
}
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 5dbef4aeefce..e7ed3cf0c0f8 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -618,7 +618,7 @@ void ListBox::EnableAutoSize( sal_Bool bAuto )
if ( mpFloatWin )
{
if ( bAuto && !mpFloatWin->GetDropDownLineCount() )
- mpFloatWin->SetDropDownLineCount( 5 );
+ mpFloatWin->SetDropDownLineCount( 16 );
else if ( !bAuto )
mpFloatWin->SetDropDownLineCount( 0 );
}