diff options
author | Eike Rathke <erack@redhat.com> | 2015-10-08 12:42:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-10-08 12:47:54 +0200 |
commit | 4c5ebb2503cbba7357cc7badfbf6f16faae9c64b (patch) | |
tree | ab949b3645eea09e120e14ce439c2d3562b73a3a /formula | |
parent | b69e55bdb2544f3fcc492d535a77ff17022ed6d5 (diff) |
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
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/parawin.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
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"); |