[Libreoffice-commits] core.git: sc/source

Marco Cecchetti marco.cecchetti at collabora.com
Tue Apr 3 19:40:21 UTC 2018


 sc/source/ui/view/gridwin.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit faf24b27a731147518390bf88efccb251a911117
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Tue Mar 13 21:39:26 2018 +0100

    lok - sc: set a min width for valid list window
    
    Change-Id: If22dbc9f0f0512d4b05e9b16c8c6414af33fb9d4
    Reviewed-on: https://gerrit.libreoffice.org/51594
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Marco Cecchetti <mrcekets at gmail.com>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index ccb3ed287f8c..79c987e8942f 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 );
 


More information about the Libreoffice-commits mailing list