Refresh wxStaticBitmap and update its size in wxUniv SetBitmap()

Make wxUniv behave consistently with the other ports.
This commit is contained in:
Vadim Zeitlin 2021-10-21 18:31:34 +01:00
parent dc1c2c91b3
commit 0f9cb0fce1

View File

@ -67,6 +67,10 @@ bool wxStaticBitmap::Create(wxWindow *parent,
void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
{
m_bitmap = bitmap;
InvalidateBestSize();
SetSize(GetBestSize());
Refresh();
}
// ----------------------------------------------------------------------------