summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-07 16:43:42 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2023-03-07 20:43:29 +0000
commitd5a97bbafe02b7d51bb5a6f609acc25f03c8469d (patch)
tree96846927442eb4730e1d8da34014210813f17ac6 /sc
parentad3fe5c2e71deb7cd51d40549331371022cfb3b4 (diff)
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/+/148402 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputwin.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index e19de72e928e..7f33e397fc95 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()