mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX: fix the dissmiss of Combobox
jira: [STUDIO-12226] Change-Id: Ibecd15608acf0d1118fe5e1b27c8b2aec756c48b (cherry picked from commit bab463f1f538397a3edfc188420a54fafd919dc2)
This commit is contained in:
@@ -755,7 +755,9 @@ void DropDown::Dismiss()
|
|||||||
void DropDown::OnDismiss()
|
void DropDown::OnDismiss()
|
||||||
{
|
{
|
||||||
if (mainDropDown) {
|
if (mainDropDown) {
|
||||||
if (mainDropDown->hover_item < 0)
|
|
||||||
|
const wxPoint& mouse_pos = wxGetMousePosition();
|
||||||
|
if (!mainDropDown->GetScreenRect().Contains(mouse_pos))
|
||||||
mainDropDown->DismissAndNotify();
|
mainDropDown->DismissAndNotify();
|
||||||
else
|
else
|
||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
|
|||||||
Reference in New Issue
Block a user