From c877549b1bbd8a66287e45426d7c04a9ec90bbb1 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 12 Feb 2020 15:46:52 +0100 Subject: [PATCH] Fixed width of "printhost_apikey" and "printhost_cafile" fields --- src/slic3r/GUI/Tab.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index f38db93c3..c5c6dc466 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1708,12 +1708,16 @@ void TabPrinter::build_printhost(ConfigOptionsGroup *optgroup) host_line.append_widget(printhost_browse); host_line.append_widget(print_host_test); optgroup->append_line(host_line); - optgroup->append_single_option_line("printhost_apikey"); + option = optgroup->get_option("printhost_apikey"); + option.opt.width = Field::def_width_wider(); + optgroup->append_single_option_line(option); const auto ca_file_hint = _(L("HTTPS CA file is optional. It is only needed if you use HTTPS with a self-signed certificate.")); if (Http::ca_file_supported()) { - Line cafile_line = optgroup->create_single_option_line("printhost_cafile"); + option = optgroup->get_option("printhost_cafile"); + option.opt.width = Field::def_width_wider(); + Line cafile_line = optgroup->create_single_option_line(option); auto printhost_cafile_browse = [this, optgroup] (wxWindow* parent) { auto btn = new wxButton(parent, wxID_ANY, " " + _(L("Browse"))+" " +dots, wxDefaultPosition, wxDefaultSize, wxBU_LEFT);