A couple of questions about some code
pixelfreak opened this issue · 2 comments
pixelfreak commented
Hello,
I am trying to understand some of the code in DDPageControl. Could you clarify the following:
- What is accomplished by this? Seems redundant
// correct the bounds accordingly
self.bounds = self.bounds
- In
setFrame:
andsetBounds:
Why is bounds assigned to super's bounds, not self?
super.bounds = aBounds;
Thanks!
pixelfreak commented
pixelfreak commented
Nvm, I see now that #1 is done to trigger new size calculation (via the setter). It's a bit indirect, but it works I guess.