Still need to set shadow offset and path on setter

- Improves panning performance after switching between top views
This commit is contained in:
Mike Enriquez
2012-04-02 16:15:58 -04:00
parent f62f51427d
commit 4913993208

View File

@@ -103,6 +103,8 @@ NSString *const ECSlidingViewTopDidReset = @"ECSlidingViewTopDidReset";
[_topViewController.view setAutoresizingMask:self.autoResizeToFillScreen];
[_topViewController.view setFrame:self.view.bounds];
_topViewController.view.layer.shadowOffset = CGSizeZero;
_topViewController.view.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.view.layer.bounds].CGPath;
[self.view addSubview:_topViewController.view];
}