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
This commit is contained in:
Miklos Vajna 2016-02-29 16:01:39 +01:00
parent 78f2b0b364
commit f2ad799bde

View file

@ -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));