cappuccino/cappuccino — Issue #1431: CPBox sizing broken with title
Author: daboe01
Created: 2012-01-14 06:21:16+00:00
State: open

prelimiary fix:

298c298
< [self setFrame:CGRectInset(aRect, -(_contentMargin.width + _borderWidth), -(_contentMargin.height + _borderWidth))];
---
> [self setFrame:CGRectInset(aRect, -(_contentMargin.width + _borderWidth), -(_contentMargin.height+[_titleView frameSize].height + _borderWidth))];
361c361
< contentFrame.size.height + _contentMargin.height * 2)];
---
> contentFrame.size.height + _contentMargin.height * 2+[_titleView frameSize].height)];
363c363
< [_contentView setFrameOrigin:CGPointMake(_contentMargin.width, _contentMargin.height)];
---
> [_contentView setFrameOrigin:CGPointMake(_contentMargin.width, _contentMargin.height+[_titleView frameSize].height)];