From f2ad799bdef9056794e60c8bc00b1d25f6bd776a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 29 Feb 2016 16:01:39 +0100 Subject: sfx2 classification: fix initial toolbar control size When the toolbar control is first shown, we don't have an object shell yet, so can't insert items to the listbox. Set the same initial size as SvxFontNameBox_Impl has, should be good enough for us, too. Change-Id: I12cc72d26353ec3a4d2d3fc5c72f3171c276d3dc --- sfx2/source/view/classificationcontroller.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sfx2/source') diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx index 737eefd351af..b05431c7ce4d 100644 --- a/sfx2/source/view/classificationcontroller.cxx +++ b/sfx2/source/view/classificationcontroller.cxx @@ -103,6 +103,8 @@ uno::Reference ClassificationCategoriesController::createItemWindo { m_pCategories = VclPtr::Create(pToolbar, WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_DROPDOWN|WB_SIMPLEMODE); m_pCategories->SetSelectHdl(LINK(this, ClassificationCategoriesController, SelectHdl)); + // Same as SvxFontNameBox_Impl. + m_pCategories->SetSizePixel(m_pCategories->LogicToPixel(Size(60, 160), MAP_APPFONT)); } return uno::Reference(VCLUnoHelper::GetInterface(m_pCategories)); -- cgit