diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-29 16:01:39 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-29 17:19:49 +0100 |
commit | f2ad799bdef9056794e60c8bc00b1d25f6bd776a (patch) | |
tree | 929243fc790a96bf8dc74f7dacf8882ecce8324a | |
parent | 78f2b0b364930493085f4ee9bafb90c2536d6ae6 (diff) |
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
-rw-r--r-- | sfx2/source/view/classificationcontroller.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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<awt::XWindow> ClassificationCategoriesController::createItemWindo { m_pCategories = VclPtr<ListBox>::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<awt::XWindow>(VCLUnoHelper::GetInterface(m_pCategories)); |