mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
FIX:fixed move wrong pos when amsmapping window popup first time
Change-Id: I5a9830141ef897399097dc21e70bfddd5113bcff
This commit is contained in:
@@ -273,6 +273,14 @@ void MaterialItem::doRender(wxDC &dc)
|
||||
SetSizer(m_sizer_main);
|
||||
Layout();
|
||||
Fit();
|
||||
|
||||
Bind(wxEVT_SHOW, [this](wxShowEvent& e) {
|
||||
if (e.IsShown() && m_parent_item) {
|
||||
wxPoint pos = m_parent_item->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += m_parent_item->GetRect().height;
|
||||
this->Move(pos);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
wxString AmsMapingPopup::format_text(wxString &m_msg)
|
||||
|
||||
Reference in New Issue
Block a user