FIX: position of video setting popup

Change-Id: I1e8053f9081b82785a99faad40adf13f756ad5ff
This commit is contained in:
tao.jin 2022-12-15 12:15:09 +08:00 committed by Lane.Wei
parent b52c27710b
commit f0bfbc617a

View file

@ -2852,7 +2852,9 @@ void StatusPanel::on_camera_enter(wxMouseEvent& event)
wxWindow* ctrl = (wxWindow*)event.GetEventObject();
wxPoint pos = ctrl->ClientToScreen(wxPoint(0, 0));
wxSize sz = ctrl->GetSize();
m_camera_popup->Position(pos, wxSize(sz.x, sz.y));
pos.x += sz.x;
pos.y += sz.y;
m_camera_popup->SetPosition(pos);
m_camera_popup->update(m_media_play_ctrl->IsStreaming());
m_camera_popup->Popup();
}