rightBackgroundView frame
NoPPT opened this issue · comments
Bill Zhuang commented
- (void)setContainerFrame:(CGRect)frame
{
UIView *leftBackgroundView = self.backgroundViews[0];
UIView *topBackgroundView = self.backgroundViews[1];
UIView *bottomBackgroundView = self.backgroundViews[2];
UIView *rightBackgroundView = self.backgroundViews[3];
leftBackgroundView.frame = CGRectMake(0, 0, frame.origin.x, self.view.frame.size.height);
// need fix ???
rightBackgroundView.frame = CGRectMake(frame.size.width + frame.origin.x, 0, self.view.frame.size.width - frame.size.width - frame.origin.x, self.view.frame.size.height);
topBackgroundView.frame = CGRectMake(frame.origin.x, 0, frame.size.width, frame.origin.y);
bottomBackgroundView.frame = CGRectMake(frame.origin.x, frame.size.height + frame.origin.y, frame.size.width, self.view.frame.size.height);
self.containerView.frame = frame;
self.backgroundImageView.frame = CGRectMake(- frame.origin.x, - frame.origin.y, self.view.bounds.size.width, self.view.bounds.size.height);
}