summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2018-03-13 21:39:26 +0100
committerMarco Cecchetti <mrcekets@gmail.com>2018-04-17 00:21:21 +0200
commite277f5d22943624448465e6c04f0fbabcb751c6f (patch)
tree2d8984f05a86d829cfd9279815f4ed972be1d1f3 /sc
parent9721a7fe0f2d0310612a7b0a1ddbaf843131e66e (diff)
lok - sc: set a min width for valid list window
Change-Id: If22dbc9f0f0512d4b05e9b16c8c6414af33fb9d4 Reviewed-on: https://gerrit.libreoffice.org/51594 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> (cherry picked from commit faf24b27a731147518390bf88efccb251a911117) Reviewed-on: https://gerrit.libreoffice.org/53009 Tested-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 0bd73358e931..4df3462c9431 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1079,6 +1079,11 @@ void ScGridWindow::LaunchDataSelectMenu( SCCOL nCol, SCROW nRow )
// Adjust position and size to Window
//! Check first if the entries fit (width)
+ // minimum width in pixel
+ const long nMinLOKWinWidth = static_cast<long>(1.3 * STD_COL_WIDTH * pViewData->GetPPTX());
+ if (comphelper::LibreOfficeKit::isActive() && nSizeX < nMinLOKWinWidth)
+ nSizeX = nMinLOKWinWidth;
+
Size aParentSize = GetParent()->GetOutputSizePixel();
Size aSize( nSizeX, nHeight );