[Libreoffice-commits] core.git: svtools/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 2 16:27:31 UTC 2019
svtools/source/control/inettbc.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 53865b3f18a2b7118b1012ebf589801329d2ef4b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 2 15:18:07 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Apr 2 18:27:08 2019 +0200
limit URLBox growth
Change-Id: Icea856be18aeaf07379be25eaeab240fe263bb52
Reviewed-on: https://gerrit.libreoffice.org/70140
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 6869bf8c32e1..9058d44f0826 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -2021,6 +2021,10 @@ URLBox::URLBox(std::unique_ptr<weld::ComboBox> pWidget)
, bHistoryDisabled(false)
, m_xWidget(std::move(pWidget))
{
+ //don't grow to fix mega-long urls
+ Size aSize(m_xWidget->get_preferred_size());
+ m_xWidget->set_size_request(aSize.Width(), -1);
+
Init();
m_xWidget->connect_focus_in(LINK(this, URLBox, FocusInHdl));
More information about the Libreoffice-commits
mailing list