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