FIX:fixed color picker control cannot be clicked on Mac OS

Change-Id: I47ea257ced111c7d519c546375d3ba8b808f1d4e
This commit is contained in:
tao wang 2023-05-25 18:12:50 +08:00 committed by Lane.Wei
parent 713e346a11
commit f5960411a3
3 changed files with 6 additions and 5 deletions

View file

@ -671,7 +671,7 @@ void AMSMaterialsSetting::on_clr_picker(wxMouseEvent &event)
}
wxPoint img_pos = m_clr_picker->ClientToScreen(wxPoint(0, 0));
wxPoint popup_pos(img_pos.x + FromDIP(50), img_pos.y);
wxPoint popup_pos(img_pos.x - m_color_picker_popup.GetSize().x - FromDIP(95), img_pos.y - FromDIP(65));
m_color_picker_popup.Position(popup_pos, wxSize(0, 0));
m_color_picker_popup.set_ams_colours(ams_colors);
m_color_picker_popup.set_def_colour(m_clr_picker->m_colour);