Permalink
Browse files

clippingFrame should always return a frame relative to the view itsel…

…f, not its parent
  • Loading branch information...
1 parent fd7f144 commit 0ff4db64f2dc2898a75c9e3f05fcb0bc1ced37dc endash committed with wagenet Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 frameworks/core_foundation/views/view.js
@@ -1004,7 +1004,7 @@ SC.CoreView.reopen(
pv = this.get('parentView');
if (pv) {
cf = pv.get('clippingFrame');
- if (!cf) return f;
+ if (!cf) return { x: 0, y: 0, width: f.width, height: f.height};
ret = SC.intersectRects(cf, f);
}
ret.x -= f.x;

0 comments on commit 0ff4db6

Please sign in to comment.