diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index ac3015ceb8c0..42e570e75dfb 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -203,6 +203,9 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(weld::Window *pParent) mxLocalView->ShowTooltips(true); + // Set width and height of the templates thumbnail viewer to acommodate 3 rows and 4 columns of items + mxLocalViewWeld->set_size_request(TEMPLATE_ITEM_MAX_WIDTH * 5, TEMPLATE_ITEM_MAX_HEIGHT_SUB * 3); + mxOKButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, OkClickHdl)); // FIXME: rather than disabling make dispatchCommand(".uno:AdditionsDialog") work in start center if ( !SfxModule::GetActiveModule() ) diff --git a/sfx2/uiconfig/ui/templatedlg.ui b/sfx2/uiconfig/ui/templatedlg.ui index 013eacb2a467..7f7fe31d6371 100644 --- a/sfx2/uiconfig/ui/templatedlg.ui +++ b/sfx2/uiconfig/ui/templatedlg.ui @@ -39,11 +39,10 @@ - 740 - 500 False 6 Templates + False True 0 0