diff --git a/src/libslic3r/Config.hpp b/src/libslic3r/Config.hpp index 9d63555fd..c73ae3a02 100644 --- a/src/libslic3r/Config.hpp +++ b/src/libslic3r/Config.hpp @@ -1474,7 +1474,9 @@ public: // Height of a multiline GUI text box. int height = -1; // Optional width of an input field. - int width = -1; + int width = -1; + // Optional label width of an input field (if in a line). + int label_width = -1; // limit of a numeric input. // If not set, the is set to // By setting min=0, only nonnegative input is allowed. diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 58de31071..024ceae0b 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1318,7 +1318,10 @@ bool Tab::create_pages(std::string setting_type_name) option.opt.full_width = true; } else if (boost::starts_with(params[i], "width$")) { - option.opt.width = atoi(params[i].substr(6, params[i].size()-6).c_str()); + option.opt.width = atoi(params[i].substr(6, params[i].size() - 6).c_str()); + } + else if (boost::starts_with(params[i], "label_width$")) { + option.opt.label_width = atoi(params[i].substr(12, params[i].size() - 12).c_str()); } else if (boost::starts_with(params[i], "height$")) { option.opt.height = atoi(params[i].substr(7, params[i].size() - 7).c_str());