diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-08 20:23:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-09 17:50:18 +0100 |
commit | 632b78686944b4ae5affa534a836da9a99bbf5ea (patch) | |
tree | f279fccf6dfb76bfe725a20424a70c041bde417f /sfx2 | |
parent | b816067fd599aa6f2d455a9a82a7dfc1dbefc56c (diff) |
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>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/inet/inettbc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index 4c0780b0f82a..b1fc33e9afd7 100644 --- a/sfx2/source/inet/inettbc.cxx +++ b/sfx2/source/inet/inettbc.cxx @@ -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; } |