]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/animate.cpp
Sizing fixes for generic control.
[wxWidgets.git] / src / gtk / animate.cpp
index 23b88a192da725945379d54ce6985abce26df537..7b3b798c00ae796e492ca4d4122cb1bb44d8e93b 100644 (file)
@@ -211,9 +211,9 @@ bool wxAnimationCtrl::Create( wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation(size);
-    SetBestSize(size);
+    SetInitialSize(size);
 
-    if (anim != wxNullAnimation)
+    if (anim.IsOk())
         SetAnimation(anim);
 
     // init the timer used for animation