mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
fix
This commit is contained in:
@@ -5032,27 +5032,12 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
{
|
||||
if (self.roomInputToolbarContainerHeightConstraint.constant != height)
|
||||
{
|
||||
// Hide temporarily the placeholder to prevent its distortion during height animation
|
||||
if (toolbarView.placeholder.length)
|
||||
{
|
||||
savedInputToolbarPlaceholder = toolbarView.placeholder;
|
||||
toolbarView.placeholder = nil;
|
||||
}
|
||||
|
||||
[super roomInputToolbarView:toolbarView heightDidChanged:height completion:^(BOOL finished) {
|
||||
|
||||
if (completion)
|
||||
{
|
||||
completion (finished);
|
||||
}
|
||||
|
||||
// Consider here the saved placeholder only if no new placeholder has been defined during the height animation.
|
||||
if (!toolbarView.placeholder && self->savedInputToolbarPlaceholder.length)
|
||||
{
|
||||
// Restore the placeholder if any
|
||||
toolbarView.placeholder = self->savedInputToolbarPlaceholder;
|
||||
}
|
||||
self->savedInputToolbarPlaceholder = nil;
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user