From 9ee6839017d6cb4c7f8671fa4e27538e98fb8224 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 11 May 2022 14:09:39 +0200 Subject: [PATCH] Resize IP list dialog. --- src/slic3r/GUI/BonjourDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/BonjourDialog.cpp b/src/slic3r/GUI/BonjourDialog.cpp index 69ab23896..d35d8e435 100644 --- a/src/slic3r/GUI/BonjourDialog.cpp +++ b/src/slic3r/GUI/BonjourDialog.cpp @@ -239,15 +239,15 @@ IPListDialog::IPListDialog(wxWindow* parent, const wxString& hostname, const std , m_selected_index (selected_index) { const int em = GUI::wxGetApp().em_unit(); - m_list->SetMinSize(wxSize(20 * em, 30 * em)); + m_list->SetMinSize(wxSize(40 * em, 30 * em)); wxBoxSizer* vsizer = new wxBoxSizer(wxVERTICAL); - auto* label = new wxStaticText(this, wxID_ANY, GUI::format_wxstr(_L("There are several IP addresses resolving to hostname %1%.\n Please select one that should be used."), hostname)); + auto* label = new wxStaticText(this, wxID_ANY, GUI::format_wxstr(_L("There are several IP addresses resolving to hostname %1%.\nPlease select one that should be used."), hostname)); vsizer->Add(label, 0, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, em); m_list->SetSingleStyle(wxLC_SINGLE_SEL); - m_list->AppendColumn(_(L("Address")), wxLIST_FORMAT_LEFT, 20 * em); + m_list->AppendColumn(_(L("Address")), wxLIST_FORMAT_LEFT, 40 * em); for (size_t i = 0; i < ips.size(); i++) auto item = m_list->InsertItem(i, boost::nowide::widen(ips[i].to_string()));