]> git.saurik.com Git - wxWidgets.git/commitdiff
Correctd orientation of sash handle.
authorRobert Roebling <robert@roebling.de>
Mon, 13 Dec 2004 00:29:32 +0000 (00:29 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 13 Dec 2004 00:29:32 +0000 (00:29 +0000)
  Adapted some code in the native scrolling window
    to the generic version's code.

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

src/gtk/renderer.cpp
src/gtk/scrolwin.cpp
src/gtk1/renderer.cpp
src/gtk1/scrolwin.cpp

index c6d47c1f4a751d5dcecee0e54c33e2f1ba72def6..952cfeb3e4eae0600bc4c7c28774410dbc2f5ea9 100644 (file)
@@ -353,7 +353,7 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
         rect.y,
         rect.width,
         rect.height,
-        isVert ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL
+        !isVert ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL
     );
 #else // GTK+ 1.x
 
index fd31b4e024c25b015742fc1c5eff5604422661b3..2125b4d388cb00c16bf5a547e92ae9512bb9c82a 100644 (file)
@@ -325,10 +325,8 @@ void wxScrolledWindow::DoSetVirtualSize( int x, int y )
     wxPanel::DoSetVirtualSize( x, y );
     AdjustScrollbars();
 
-#if wxUSE_CONSTRAINTS
     if (GetAutoLayout())
         Layout();
-#endif
 }
 
 /*
index c6d47c1f4a751d5dcecee0e54c33e2f1ba72def6..952cfeb3e4eae0600bc4c7c28774410dbc2f5ea9 100644 (file)
@@ -353,7 +353,7 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
         rect.y,
         rect.width,
         rect.height,
-        isVert ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL
+        !isVert ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL
     );
 #else // GTK+ 1.x
 
index fd31b4e024c25b015742fc1c5eff5604422661b3..2125b4d388cb00c16bf5a547e92ae9512bb9c82a 100644 (file)
@@ -325,10 +325,8 @@ void wxScrolledWindow::DoSetVirtualSize( int x, int y )
     wxPanel::DoSetVirtualSize( x, y );
     AdjustScrollbars();
 
-#if wxUSE_CONSTRAINTS
     if (GetAutoLayout())
         Layout();
-#endif
 }
 
 /*