]> git.saurik.com Git - wxWidgets.git/commitdiff
Update Layout more correctly in DoSetVirtualSize.
authorRon Lee <ron@debian.org>
Sun, 7 Jul 2002 03:16:35 +0000 (03:16 +0000)
committerRon Lee <ron@debian.org>
Sun, 7 Jul 2002 03:16:35 +0000 (03:16 +0000)
fixed format string typo.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/scrolwin.cpp
src/gtk1/scrolwin.cpp
src/msw/nativdlg.cpp

index 4e89b7d3907bbae28354a61277056bb688bd745d..222c399fc3cd0aa90033d65ac50f6fd64592abff 100644 (file)
@@ -325,6 +325,11 @@ void wxScrolledWindow::DoSetVirtualSize( int x, int y )
 {
     wxPanel::DoSetVirtualSize( x, y );
     AdjustScrollbars();
+
+#if wxUSE_CONSTRAINTS
+    if (GetAutoLayout())
+        Layout();
+#endif
 }
 
 /*
@@ -816,11 +821,6 @@ void wxScrolledWindow::OnSize(wxSizeEvent& WXUNUSED(event))
         m_targetWindow->SetVirtualSize( m_targetWindow->GetClientSize() );
 
     SetVirtualSize( GetClientSize() );
-
-#if wxUSE_CONSTRAINTS
-    if (GetAutoLayout())
-        Layout();
-#endif
 }
 
 // This calls OnDraw, having adjusted the origin according to the current
index 4e89b7d3907bbae28354a61277056bb688bd745d..222c399fc3cd0aa90033d65ac50f6fd64592abff 100644 (file)
@@ -325,6 +325,11 @@ void wxScrolledWindow::DoSetVirtualSize( int x, int y )
 {
     wxPanel::DoSetVirtualSize( x, y );
     AdjustScrollbars();
+
+#if wxUSE_CONSTRAINTS
+    if (GetAutoLayout())
+        Layout();
+#endif
 }
 
 /*
@@ -816,11 +821,6 @@ void wxScrolledWindow::OnSize(wxSizeEvent& WXUNUSED(event))
         m_targetWindow->SetVirtualSize( m_targetWindow->GetClientSize() );
 
     SetVirtualSize( GetClientSize() );
-
-#if wxUSE_CONSTRAINTS
-    if (GetAutoLayout())
-        Layout();
-#endif
 }
 
 // This calls OnDraw, having adjusted the origin according to the current
index 85a7920b99224fcab297d6dc20333763ddd240b8..eac7d80f514ce421225f186d3672189cc973f430 100644 (file)
@@ -211,7 +211,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
         }
         else
         {
-            wxLogError(wxT("Don't know what kind of button this is: id = %d"),
+            wxLogError(wxT("Don't know what kind of button this is: id = %ld"),
                        id);
         }
     }