Skip to content

Commit

Permalink
FIX: Disable the horizontal scrolling window
Browse files Browse the repository at this point in the history
jira: STUDIO-4454

Disable the horizontal scrolling window when there is a Configuration
update

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: Idf9cd8ddaf335d71ae95ab4c51ae826372e19f0f
  • Loading branch information
BambooBugFixer authored and lanewei120 committed Nov 9, 2023
1 parent 7376770 commit b137b4a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/slic3r/GUI/UpdateDialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates, bool force_

m_sizer_right->Add(0, 0, 1, wxTOP, FromDIP(15));

auto m_scrollwindw_release_note = new wxScrolledWindow(this, wxID_ANY, wxDefaultPosition, wxSize(FromDIP(560), FromDIP(430)));
m_scrollwindw_release_note->SetScrollRate(5, 5);
auto m_scrollwindw_release_note = new wxScrolledWindow(this, wxID_ANY, wxDefaultPosition, wxSize(FromDIP(560), FromDIP(430)),wxVSCROLL);
m_scrollwindw_release_note->SetScrollRate(0, 5);
m_scrollwindw_release_note->SetBackgroundColour(wxColour(0xF8, 0xF8, 0xF8));
m_scrollwindw_release_note->SetMaxSize(wxSize(FromDIP(540), FromDIP(410)));
m_scrollwindw_release_note->SetMaxSize(wxSize(FromDIP(560), FromDIP(430)));
m_scrollwindw_release_note->SetWindowStyle(wxVSCROLL);

auto sizer_button = new wxBoxSizer(wxHORIZONTAL);
sizer_button->Add(0, 0, 1, wxEXPAND, 5);
Expand Down Expand Up @@ -200,8 +201,11 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates, bool force_
// BBS: use changelog string instead of url
if (!update.comment.empty()) {
flex->Add(new wxStaticText(m_scrollwindw_release_note, wxID_ANY, _(L("Description:"))), 0, wxALIGN_RIGHT);
auto *update_comment = new wxStaticText(m_scrollwindw_release_note, wxID_ANY, from_u8(update.comment));
update_comment->Wrap(FromDIP(242) * wxGetApp().em_unit());
auto *update_comment = new Label(m_scrollwindw_release_note,std::string(""));
update_comment->SetLabel(from_u8(update.comment));
update_comment->SetMaxSize(wxSize(FromDIP(545), -1));
update_comment->SetMinSize(wxSize(FromDIP(545), -1));
update_comment->Wrap(FromDIP(450));
flex->Add(update_comment);
}

Expand Down

0 comments on commit b137b4a

Please sign in to comment.