mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-09 16:27:45 -07:00
FIX: fix the dissmiss of Combobox
jira: [STUDIO-12226] Change-Id: Ibecd15608acf0d1118fe5e1b27c8b2aec756c48b (cherry picked from commit bab463f1f538397a3edfc188420a54fafd919dc2)
This commit is contained in:
parent
e13e6c7897
commit
2e916fcd5d
1 changed files with 3 additions and 1 deletions
|
|
@ -755,7 +755,9 @@ void DropDown::Dismiss()
|
|||
void DropDown::OnDismiss()
|
||||
{
|
||||
if (mainDropDown) {
|
||||
if (mainDropDown->hover_item < 0)
|
||||
|
||||
const wxPoint& mouse_pos = wxGetMousePosition();
|
||||
if (!mainDropDown->GetScreenRect().Contains(mouse_pos))
|
||||
mainDropDown->DismissAndNotify();
|
||||
else
|
||||
#ifdef __WIN32__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue