summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
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);
}