]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/fl/rowdragpl.cpp
fixed Fit() to avoid showing scrollbars
[wxWidgets.git] / contrib / src / fl / rowdragpl.cpp
index e0ea5ad12f0a83cdee55677ffa3a6d3347b2d7bc..3e095121a948667afdc63d0fe37a1d38cfbeb076 100644 (file)
@@ -229,7 +229,7 @@ void cbRowDragPlugin::OnMouseMove( cbMotionEvent& event )
                        // DBG::
                        wxPoint p = event.mPos;
                        wxPoint d = mDragOrigin;
                        // DBG::
                        wxPoint p = event.mPos;
                        wxPoint d = mDragOrigin;
-                       int dif = event.mPos.x - mDragOrigin.x;
+//                     int dif = event.mPos.x - mDragOrigin.x;
 
                        // row is dragged up or down;
                        ShowDraggedRow( pos.y - mDragOrigin.y );
 
                        // row is dragged up or down;
                        ShowDraggedRow( pos.y - mDragOrigin.y );
@@ -239,7 +239,7 @@ void cbRowDragPlugin::OnMouseMove( cbMotionEvent& event )
                        // DBG::
                        wxPoint p = event.mPos;
                        wxPoint d = mDragOrigin;
                        // DBG::
                        wxPoint p = event.mPos;
                        wxPoint d = mDragOrigin;
-                       int dif = event.mPos.x - mDragOrigin.x;
+//                     int dif = event.mPos.x - mDragOrigin.x;
 
                        // row is dragged left or right
                        ShowDraggedRow( pos.x - mDragOrigin.x );
 
                        // row is dragged left or right
                        ShowDraggedRow( pos.x - mDragOrigin.x );