[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sc/source

Marco Cecchetti marco.cecchetti at collabora.com
Tue Mar 20 16:36:12 UTC 2018


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

New commits:
commit b35f1af6e1c111ec9d138236a37d71106550af1f
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/51608
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 6bf960dcd45e..e8eaad8e9403 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1135,6 +1135,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