Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutliline text is cut #51

Closed
engmsaleh opened this issue Nov 16, 2015 · 3 comments
Closed

Mutliline text is cut #51

engmsaleh opened this issue Nov 16, 2015 · 3 comments

Comments

@engmsaleh
Copy link

I have an issue when I use the composeBar to enter more than a line , the first one is displayed correctly the lines after are being cut and not visible.
Check attached photo
issue

@fphilipe
Copy link
Owner

I'm sorry, can't really help you. Maybe something with the font size?

@engmsaleh
Copy link
Author

I have ended up solving it by the following code in the composeBarView delegate

- (void)composeBarView:(PHFComposeBarView *)composeBarView
   willChangeFromFrame:(CGRect)startFrame
               toFrame:(CGRect)endFrame
              duration:(NSTimeInterval)duration
        animationCurve:(UIViewAnimationCurve)animationCurve
{
    float diff = (startFrame.size.height - endFrame.size.height);
    CGRect frame = self.tableView.frame;
    frame.size.height += diff;
    self.tableView.frame = frame;

    CGRect textViewFrame = composeBarView.textView.frame;
    textViewFrame.size.height -= diff;
    composeBarView.textView.frame = textViewFrame;

}

@fphilipe
Copy link
Owner

fphilipe commented Dec 4, 2015

👍 Glad you found a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants