Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-02-04 12:35:16 +0300
committerYuSanka <yusanka@gmail.com>2019-02-04 12:35:16 +0300
commit4005d06452385b0bf22cfca0ebe7d912d5814702 (patch)
tree301cd6367666e4bf637b54eb075d93b50c34fdd2 /src/slic3r/GUI/SysInfoDialog.cpp
parentba6206ab6275655ede977b56df3b367786b0d69e (diff)
Fixed "hard_code" setting of the size for the Sidebar and Tabs
+ Fixed assert after config_wizard changing
Diffstat (limited to 'src/slic3r/GUI/SysInfoDialog.cpp')
-rw-r--r--src/slic3r/GUI/SysInfoDialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slic3r/GUI/SysInfoDialog.cpp b/src/slic3r/GUI/SysInfoDialog.cpp
index fd8ab5f93..fef044cec 100644
--- a/src/slic3r/GUI/SysInfoDialog.cpp
+++ b/src/slic3r/GUI/SysInfoDialog.cpp
@@ -5,6 +5,7 @@
#include <wx/clipbrd.h>
#include <wx/platinfo.h>
+#include "GUI_App.hpp"
namespace Slic3r {
namespace GUI {
@@ -42,7 +43,7 @@ SysInfoDialog::SysInfoDialog()
wxColour bgr_clr = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
SetBackgroundColour(bgr_clr);
wxBoxSizer* hsizer = new wxBoxSizer(wxHORIZONTAL);
- hsizer->SetMinSize(wxSize(600, -1));
+ hsizer->SetMinSize(wxSize(45 * wxGetApp().em_unit(), -1));
auto main_sizer = new wxBoxSizer(wxVERTICAL);
main_sizer->Add(hsizer, 0, wxEXPAND | wxALL, 10);
@@ -95,7 +96,7 @@ SysInfoDialog::SysInfoDialog()
// opengl_info
wxHtmlWindow* opengl_info_html = new wxHtmlWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO);
{
- opengl_info_html->SetMinSize(wxSize(-1, 200));
+ opengl_info_html->SetMinSize(wxSize(-1, 15 * wxGetApp().em_unit()));
opengl_info_html->SetFonts(font.GetFaceName(), font.GetFaceName(), size);
opengl_info_html->SetBorders(10);
const auto text = wxString::Format(