]> git.saurik.com Git - wxWidgets.git/commitdiff
cocoa layout optimization, see #10361
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Jan 2009 18:49:53 +0000 (18:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Jan 2009 18:49:53 +0000 (18:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/slider_osx.cpp

index 45b335899df0a1ab71f6fc9ca538498d4d1e38ee..c0e980c3763c8143d9eba18dab4902adf933647a 100644 (file)
@@ -22,8 +22,13 @@ BEGIN_EVENT_TABLE(wxSlider, wxControl)
 END_EVENT_TABLE()
 
  // The dimensions of the different styles of sliders (from Aqua document)
 END_EVENT_TABLE()
 
  // The dimensions of the different styles of sliders (from Aqua document)
-#define wxSLIDER_DIMENSIONACROSS_WITHTICKMARKS 24
-#define wxSLIDER_DIMENSIONACROSS_ARROW 18
+#ifdef wxOSX_USE_COCOA
+    #define wxSLIDER_DIMENSIONACROSS_WITHTICKMARKS 25
+    #define wxSLIDER_DIMENSIONACROSS_ARROW 21
+#else
+    #define wxSLIDER_DIMENSIONACROSS_WITHTICKMARKS 24
+    #define wxSLIDER_DIMENSIONACROSS_ARROW 18
+#endif
 
 // Distance between slider and text
 #define wxSLIDER_BORDERTEXT 5
 
 // Distance between slider and text
 #define wxSLIDER_BORDERTEXT 5