mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-02 13:00:28 -07:00
FIX: update the dialog size control
jira: [STUDIO-12256] Change-Id: I6472289ea99686ac7bdc3c0cafb6d7bcfdc61ab1 (cherry picked from commit c28e4be2ca1148be0326472ff43b0e605ffca29c)
This commit is contained in:
parent
80ac21afd6
commit
db3ea45e82
1 changed files with 5 additions and 5 deletions
|
|
@ -1309,9 +1309,9 @@ void ConfirmBeforeSendDialog::update_text(std::vector<ConfirmBeforeSendInfo> tex
|
|||
if (enable_warning_clr && text.level == ConfirmBeforeSendInfo::InfoLevel::Warning) {
|
||||
label_item->SetForegroundColour(wxColour(0xFF, 0x6F, 0x00));
|
||||
}
|
||||
label_item->SetMaxSize(wxSize(FromDIP(500), -1));
|
||||
label_item->SetMinSize(wxSize(FromDIP(500), -1));
|
||||
label_item->Wrap(FromDIP(500));
|
||||
label_item->SetMaxSize(wxSize(FromDIP(494), -1));
|
||||
label_item->SetMinSize(wxSize(FromDIP(494), -1));
|
||||
label_item->Wrap(FromDIP(494));
|
||||
label_item->Layout();
|
||||
sizer_text_release_note->Add(label_item, 0, wxALIGN_CENTER | wxALL, FromDIP(3));
|
||||
height += label_item->GetSize().y;
|
||||
|
|
@ -1319,9 +1319,9 @@ void ConfirmBeforeSendDialog::update_text(std::vector<ConfirmBeforeSendInfo> tex
|
|||
|
||||
m_vebview_release_note->Layout();
|
||||
if (height < FromDIP(500))
|
||||
m_vebview_release_note->SetMinSize(wxSize(FromDIP(500), height + FromDIP(25)));
|
||||
m_vebview_release_note->SetMinSize(wxSize(-1, height + FromDIP(25)));
|
||||
else {
|
||||
m_vebview_release_note->SetMinSize(wxSize(FromDIP(500), FromDIP(500)));
|
||||
m_vebview_release_note->SetMinSize(wxSize(-1, FromDIP(500)));
|
||||
}
|
||||
|
||||
Layout();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue