mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-28 13:17:42 +00:00
fixed: missing dom protection
This commit is contained in:
@@ -630,6 +630,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
|
||||
- (void)_updateSelectedColumnBackgrounds
|
||||
{
|
||||
#if PLATFORM(DOM)
|
||||
// 1. Remove existing column background views
|
||||
[_selectedColumnBackgroundViews makeObjectsPerformSelector:@selector(removeFromSuperview)];
|
||||
[_selectedColumnBackgroundViews removeAllObjects];
|
||||
@@ -667,6 +668,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
if (_visibleRowViews.hasOwnProperty(rowIndex))
|
||||
[self addSubview:_visibleRowViews[rowIndex] positioned:CPWindowBelow relativeTo:nil];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -5557,12 +5559,10 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
|
||||
// Ensure the text turns white
|
||||
[self _updateDataViewsFocusState];
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
// for symmetry with _notifyViewDidResignFirstResponder
|
||||
setTimeout(function() {
|
||||
[self _updateSelectedColumnBackgrounds];
|
||||
}, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
- (void)_notifyViewDidResignFirstResponder
|
||||
@@ -5572,12 +5572,10 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
|
||||
// Ensure the text turns black
|
||||
[self _updateDataViewsFocusState];
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
// needed because _isFocussed still returns true in this iteration of the run loop
|
||||
setTimeout(function() {
|
||||
[self _updateSelectedColumnBackgrounds];
|
||||
}, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user