diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-06 14:40:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-07 20:27:13 +0100 |
commit | 8a9eda59e45c73d051eb1e0106ee4d663fec9ba6 (patch) | |
tree | c07a8b2faa9509f72a06398329bd5935a778fac8 /vcl | |
parent | 54c6230a19359ef6ea6a11ed326c520cdbe271d4 (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.cxx | 3 |
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); } |