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

New commits:
commit cc6fe41b051722ab73a44c7aa00b9101ae0284ca
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Mar 7 16:43:42 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Mar 7 20:37:00 2023 +0000

    tdf#154042 Use an initial height of one row for toolbar layout
    
    so the Toolbar positions this in the same place regardless of how many
    rows it eventually shows
    
    Change-Id: I7ec31e50557a099962fb051a1948781ef9abdfb6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148433
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 57c338667235..0b5138ec419e 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -879,6 +879,11 @@ ScInputBarGroup::ScInputBarGroup(vcl::Window* pParent, 
ScTabViewShell* pViewSh)
     const SfxViewShell* pViewShell = SfxViewShell::Current();
     if (!comphelper::LibreOfficeKit::isActive() || !(pViewShell && 
pViewShell->isLOKMobilePhone()))
         mxButtonDown->show();
+
+    // tdf#154042 Use an initial height of one row so the Toolbar positions
+    // this in the same place regardless of how many rows it eventually shows
+    Size aSize(GetSizePixel().Width(), nHeight);
+    SetSizePixel(aSize);
 }
 
 void ScInputBarGroup::SetBackgrounds()

Reply via email to