Skip to content

Instantly share code, notes, and snippets.

@boucher
Created December 21, 2009 01:41
Show Gist options
  • Select an option

  • Save boucher/260709 to your computer and use it in GitHub Desktop.

Select an option

Save boucher/260709 to your computer and use it in GitHub Desktop.
diff --git a/AppKit/CPView.j b/AppKit/CPView.j
index e67dd26..b6a2810 100644
--- a/AppKit/CPView.j
+++ b/AppKit/CPView.j
@@ -1670,7 +1670,7 @@ setBoundsOrigin:
- (BOOL)needsDisplay
{
- return _dirtyRect && !_CGRectIsEmpty(_dirtyRect);
+ return _dirtyRect && !_CGRectIsEmpty(_dirtyRect) && ![self isHidden];
}
/*!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment