diff --git a/vector/src/main/java/im/vector/app/core/ui/views/FooteredTextView.kt b/vector/src/main/java/im/vector/app/core/ui/views/FooteredTextView.kt index ad13799bc6..712dfc4db3 100644 --- a/vector/src/main/java/im/vector/app/core/ui/views/FooteredTextView.kt +++ b/vector/src/main/java/im/vector/app/core/ui/views/FooteredTextView.kt @@ -126,6 +126,10 @@ class FooteredTextView @JvmOverloads constructor( } else { // Reserve vertical footer space newHeight += footerHeight + // Ensure enough width for footer bellow + newWidth = max(newWidth, footerWidth + + resources.getDimensionPixelSize(R.dimen.sc_footer_padding_compensation) + + 2 * resources.getDimensionPixelSize(R.dimen.sc_footer_overlay_padding)) } if (addItalicPadding) {