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.
This commit is contained in:
cacaodev
2012-04-13 09:19:35 +02:00
parent 0b5f0e5e61
commit 399734fad4
+2 -1
View File
@@ -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;
}