From 4c5ebb2503cbba7357cc7badfbf6f16faae9c64b Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 8 Oct 2015 12:42:42 +0200 Subject: leave room for three lines of text in function description ... so we can get a little bit more verbose. The new "this is for interop with old ... instead use ..." description fit into the function overview but was truncated in the parameter window. Change-Id: I73c5e6cfb64a2b1573ab15f5ceb6aa16e6da4a99 --- formula/source/ui/dlg/parawin.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'formula/source') diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index 8c9b33a651ff..0bec0bb1a045 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -47,11 +47,15 @@ ParaWin::ParaWin(vcl::Window* pParent,IControlReferenceHandler* _pDlg): get(m_pFtArgName, "parname"); get(m_pFtArgDesc, "pardesc"); - //Space for two lines of text + // Space for three lines of text in function description. + m_pFtEditDesc->SetText("X\nX\nX\n"); + long nEditHeight = m_pFtEditDesc->GetOptimalSize().Height(); + m_pFtEditDesc->set_height_request(nEditHeight); + m_pFtEditDesc->SetText(""); + // Space for two lines of text in parameter description. m_pFtArgDesc->SetText("X\nX\n"); - long nHeight = m_pFtArgDesc->GetOptimalSize().Height(); - m_pFtEditDesc->set_height_request(nHeight); - m_pFtArgDesc->set_height_request(nHeight); + long nArgHeight = m_pFtArgDesc->GetOptimalSize().Height(); + m_pFtArgDesc->set_height_request(nArgHeight); m_pFtArgDesc->SetText(""); get(m_pBtnFx1, "FX1"); -- cgit