From 399734fad418357b4e7dc7bb63b99bbb933b1bd6 Mon Sep 17 00:00:00 2001 From: cacaodev Date: Wed, 14 Mar 2012 22:31:44 +0100 Subject: [PATCH] CPTableView -_dragViewForColumn:event:offset: Set the dragView frame before dataviews are added to it. Otherwise, dataviews will be expanded depending on their autoresize mask and appear cropped on the right. --- AppKit/CPTableView.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 09dea4635..9ec6de2b1 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -2939,6 +2939,8 @@ Your delegate can implement this method to avoid subclassing the tableview to ad headerView = [tableColumn headerView], row = [_exposedRows firstIndex]; + [dragView setFrame:bounds]; + while (row !== CPNotFound) { var dataView = [self _newDataViewForRow:row tableColumn:tableColumn], @@ -2968,7 +2970,6 @@ Your delegate can implement this method to avoid subclassing the tableview to ad [dragView setBackgroundColor:[CPColor whiteColor]]; [dragView setAlphaValue:0.7]; - [dragView setFrame:bounds]; return dragView; }