summaryrefslogtreecommitdiff
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:42 +0000
commit0c1c25a97dff15ace8e9fe1fe91ab1de8adaa41b (patch)
tree8c4f93439e0c0280024969779a40302c1bb483e9
parent03fe458efe59a810f885817abf2a574c0dda1dc2 (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/+/148403 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-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 739fe5c12965..db9752da05bf 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -868,6 +868,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);
}
Point ScInputBarGroup::GetCursorScreenPixelPos(bool bBelow)