mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 19:17:33 +00:00
fix build failed bug.
This commit is contained in:
@@ -271,7 +271,12 @@ void MarkdownTip::OnTitleChanged(wxWebViewEvent& event)
|
|||||||
height = size.y;
|
height = size.y;
|
||||||
wxPoint pos = _requestPos;
|
wxPoint pos = _requestPos;
|
||||||
if (pos.y + height > size.y)
|
if (pos.y + height > size.y)
|
||||||
pos.y = std::max(0, size.y - height);
|
{
|
||||||
|
pos.y= 0;
|
||||||
|
if(size.y-height>0)
|
||||||
|
pos.y = size.y - height;
|
||||||
|
}
|
||||||
|
|
||||||
// Ensure height is valid
|
// Ensure height is valid
|
||||||
if (height <= 0) height = 100;
|
if (height <= 0) height = 100;
|
||||||
this->SetSize({ 400, (int)height });
|
this->SetSize({ 400, (int)height });
|
||||||
|
|||||||
Reference in New Issue
Block a user