Fix 2 Linux assertation errors on gtk_window_resize() (#13718)

Update DropDown.cpp
This commit is contained in:
yw4z
2026-05-18 19:01:42 +03:00
committed by GitHub
parent 054a173af7
commit dc12126b78

View File

@@ -554,7 +554,8 @@ void DropDown::messureSize()
wxWindow::SetSize(szContent);
#ifdef __WXGTK__
// Gtk has a wrapper window for popup widget
gtk_window_resize (GTK_WINDOW (m_widget), szContent.x, szContent.y);
if (szContent.x > 0 && szContent.y > 0)
gtk_window_resize (GTK_WINDOW (m_widget), szContent.x, szContent.y);
#endif
if (!groups.empty() && subDropDown == nullptr) {
subDropDown = new DropDown(items);