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:
parent
78f2b0b364
commit
f2ad799bde
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue