[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Feb 9 16:50:53 UTC 2020


 sfx2/source/inet/inettbc.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 632b78686944b4ae5affa534a836da9a99bbf5ea
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Feb 8 20:23:09 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Feb 9 17:50:18 2020 +0100

    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 at redhat.com>

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;
 }
 


More information about the Libreoffice-commits mailing list