ajerez / AJNotificationView

Notice component for iOS (UNMAINTAINED CODE)
MIT License
303 stars 41 forks source link

Detail disclosure is on top of the text when the text length is long. #9

Closed coder007 closed 11 years ago

coder007 commented 11 years ago

Currently the text does not take into account of the region occupied by the detail disclosure when it is shown. To see the issue, either reproduce it as follow or see the image attached below.

For example, using the sample demo project. Change the default text from "Detail disclosure notification" to "Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. ", like so:

- (IBAction)showOrangeNotificationWithoutlines:(id)sender {
    [AJNotificationView showNoticeInView:self.view
                                    type:AJNotificationTypeBlue
                                   title:@"Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. "
                         linedBackground:AJLinedBackgroundTypeAnimated
                               hideAfter:2.5f offset:0.0f delay:0.0f detailDisclosure:YES
                                response:^{
                                    NSLog(@"Response block");
                                }
     ];
}

iOS Simulator Screen shot 14 12 2012 4 13 21 PM

ajerez commented 11 years ago

I'll try to fix this today, thanks

ajerez commented 11 years ago

Fixed