fixing sizing bug inside wxWizard

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-10-23 16:10:26 +00:00
parent b0021947ef
commit 260a67b7aa
2 changed files with 18 additions and 0 deletions

View File

@@ -731,6 +731,15 @@ void wxComboBox::EnableEvents()
void wxComboBox::OnSize( wxSizeEvent &event )
{
// NB: In some situations (e.g. on non-first page of a wizard, if the
// size used is default size), GtkCombo widget is resized correctly,
// but it's look is not updated, it's rendered as if it was much wider.
// No other widgets are affected, so it looks like a bug in GTK+.
// Manually requesting resize calculation (as gtk_pizza_set_size does)
// fixes it.
if (GTK_WIDGET_VISIBLE(m_widget))
gtk_widget_queue_resize(m_widget);
event.Skip();
}