Resolves: tdf#128972 limit width of combobox of recently-used

in the wizard so that the end of the combobox is available and the
dialog isn't oversized.

the user can resize the window to see more of the text of the recently-used

Change-Id: Ic0b8d6c6e8840052e8f20e9f9a13d44140efde85
Reviewed-on: https://gerrit.libreoffice.org/85069
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2019-12-12 16:24:45 +00:00
parent ab9ac0fc69
commit dac33e465a
2 changed files with 5 additions and 1 deletions

View File

@ -124,6 +124,10 @@ namespace dbaui
OpenDocumentListBox::OpenDocumentListBox(std::unique_ptr<weld::ComboBox> xControl, const sal_Char* _pAsciiModuleName )
: m_xControl(std::move(xControl))
{
// we need to limit the max auto width feature of the filter box
int nWidth = m_xControl->get_approximate_digit_width() * 50;
m_xControl->set_size_request(nWidth, -1);
impl_init( _pAsciiModuleName );
}

View File

@ -153,7 +153,7 @@
<object class="GtkComboBoxText" id="documentList">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="expand">False</property>