give the SvtURLBox in toolbar its 'classic' width

Change-Id: I52f3966f28fd347159551f640ba61d4f88ee54f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88282
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2020-02-08 20:23:09 +00:00
parent b816067fd5
commit 632b786869

View File

@@ -73,7 +73,8 @@ public:
{
m_xWidget->connect_key_press(LINK(this, URLBoxItemWindow, KeyInputHdl));
SetSizePixel(m_xWidget->get_preferred_size());
int nWidth = GetDesktopRectPixel().GetWidth() > 800 ? 300 : 225;
SetSizePixel(Size(nWidth, m_xWidget->get_preferred_size().Height()));
}
SvtURLBox* GetURLBox()
@@ -193,6 +194,7 @@ VclPtr<vcl::Window> SfxURLToolBoxControl_Impl::CreateItemWindow( vcl::Window* pP
SvtURLBox* pURLBox = xURLBox->GetURLBox();
pURLBox->connect_changed(LINK(this, SfxURLToolBoxControl_Impl, SelectHdl));
pURLBox->connect_entry_activate(LINK(this, SfxURLToolBoxControl_Impl, OpenHdl));
xURLBox->Show();
return xURLBox;
}