Kaydet (Commit) f2ad799b authored tarafından Miklos Vajna's avatar Miklos Vajna

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
üst 78f2b0b3
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment