diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-03-28 17:43:29 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-28 15:41:42 +0100 |
commit | ce9dab8c161e29769131cec741a6a9cceec8552d (patch) | |
tree | 7d44794f2e0413662df4baa19ffe6727163a135d /vcl/source/control/listbox.cxx | |
parent | c033d8e5a662eec3c1104b70f33cf0795c8c211c (diff) |
tdf#124148 add configurable margin for the listbox pop-up list
This is needed to increase the area of lisbox entries in the
pop-up list so it is easier to select with touch.
Change-Id: Iedb910508de26c903dc3f50f645f567d4c988940
Reviewed-on: https://gerrit.libreoffice.org/69889
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/control/listbox.cxx')
-rw-r--r-- | vcl/source/control/listbox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index 06d02ffaf433..dc332b3a8df2 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -1224,7 +1224,7 @@ Size ListBox::CalcSubEditSize() const aSz = mpImplLB->CalcSize (mnLineCount ? mnLineCount : mpImplLB->GetEntryList()->GetEntryCount()); else { - aSz.setHeight( mpImplLB->CalcSize( 1 ).Height() ); + aSz.setHeight( mpImplLB->GetEntryHeight() ); // Size to maxmimum entry width aSz.setWidth( mpImplLB->GetMaxEntryWidth() ); @@ -1318,7 +1318,7 @@ void ListBox::GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines { Size aOutSz = mpImplLB->GetMainWindow()->GetOutputSizePixel(); rnCols = static_cast<sal_uInt16>(aOutSz.Width()/nCharWidth); - rnLines = static_cast<sal_uInt16>(aOutSz.Height()/mpImplLB->GetEntryHeight()); + rnLines = static_cast<sal_uInt16>(aOutSz.Height()/mpImplLB->GetEntryHeightWithMargin()); } else { |