Skip to content

Commit

Permalink
need control on those frames and bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
clement committed Aug 25, 2011
1 parent 660ed06 commit 59c80f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/DDPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ - (id)init

- (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame: CGRectZero]))
if ((self = [super initWithFrame:frame]))
{
self.backgroundColor = [UIColor clearColor] ;
}
Expand Down Expand Up @@ -225,7 +225,7 @@ - (void)setIndicatorSpace:(CGFloat)aSpace
[self setNeedsDisplay] ;
}

- (void)setFrame:(CGRect)aFrame
/*- (void)setFrame:(CGRect)aFrame
{
// we do not allow the caller to modify the size struct in the frame so we compute it
aFrame.size = [self sizeForNumberOfPages: numberOfPages] ;
Expand All @@ -237,7 +237,7 @@ - (void)setBounds:(CGRect)aBounds
// we do not allow the caller to modify the size struct in the bounds so we compute it
aBounds.size = [self sizeForNumberOfPages: numberOfPages] ;
super.bounds = aBounds ;
}
}*/



Expand Down

0 comments on commit 59c80f6

Please sign in to comment.