diff options
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/formula.cxx | 5 | ||||
-rw-r--r-- | formula/uiconfig/ui/formuladialog.ui | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index f5402ba51935..9f923baadf86 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -1402,8 +1402,13 @@ void FormulaDlg_Impl::UpdateSelection() pMEdit->SetSelection(aSel); m_pMEFormula->UpdateOldSel(); } + ::std::pair<RefButton*,RefEdit*> FormulaDlg_Impl::RefInputStartBefore( RefEdit* pEdit, RefButton* pButton ) { + //because its initially hidden, give it its optimal + //size so clicking the refbutton has an initial + //size to work work when retro-fitting this to .ui + m_pEdRef->SetSizePixel(m_pEdRef->GetOptimalSize()); m_pEdRef->Show(); pTheRefEdit = pEdit; pTheRefButton = pButton; diff --git a/formula/uiconfig/ui/formuladialog.ui b/formula/uiconfig/ui/formuladialog.ui index 7afd50050086..b947b3d6c2c2 100644 --- a/formula/uiconfig/ui/formuladialog.ui +++ b/formula/uiconfig/ui/formuladialog.ui @@ -440,6 +440,7 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="hexpand">True</property> + <property name="width_chars">60</property> </object> <packing> <property name="left_attach">0</property> |