summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-06 14:40:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-07 20:27:13 +0100
commit8a9eda59e45c73d051eb1e0106ee4d663fec9ba6 (patch)
treec07a8b2faa9509f72a06398329bd5935a778fac8 /vcl
parent54c6230a19359ef6ea6a11ed326c520cdbe271d4 (diff)
set an initial height for widgets in toolbars
Change-Id: I8722095bd6f36b80b841a4e3fe9841eb39c7ebcc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90162 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/builder.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 194c1d4aacd9..7d7b87208dda 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -2447,6 +2447,9 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
// if the parent was a toolbox set it as an itemwindow for the latest itemid
if (pToolBox)
{
+ Size aSize(xWindow->GetSizePixel());
+ aSize.setHeight(xWindow->get_preferred_size().Height());
+ xWindow->SetSizePixel(aSize);
pToolBox->SetItemWindow(m_pParserState->m_nLastToolbarId, xWindow);
pToolBox->SetItemExpand(m_pParserState->m_nLastToolbarId, true);
}