mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 18:56:13 +00:00
fix build failed bugs.
This commit is contained in:
@@ -149,7 +149,12 @@ bool MarkdownTip::ShowTip(wxPoint pos, std::string const &tip, std::string const
|
|||||||
// Ensure display size is valid
|
// Ensure display size is valid
|
||||||
if (size.y <= 0) size.y = 600;
|
if (size.y <= 0) size.y = 600;
|
||||||
if (pos.y + this->GetSize().y > size.y)
|
if (pos.y + this->GetSize().y > size.y)
|
||||||
pos.y = std::max(0, size.y - this->GetSize().y);
|
{
|
||||||
|
pos.y = 0;
|
||||||
|
if( (size.y - this->GetSize().y) > 0)
|
||||||
|
pos.y = (size.y - this->GetSize().y);
|
||||||
|
}
|
||||||
|
|
||||||
this->SetPosition(pos);
|
this->SetPosition(pos);
|
||||||
if (tipChanged || _hide) {
|
if (tipChanged || _hide) {
|
||||||
_hide = false;
|
_hide = false;
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxGetApp().fltviews().relead_all();
|
wxGetApp().fltviews().reload_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->EndModal(wxID_OK);
|
this->EndModal(wxID_OK);
|
||||||
|
|||||||
Reference in New Issue
Block a user