FooteredTextView: Fix reserving footer width when forcing footer below

Change-Id: Iea91960f6bcbdc0af4956a65a04d926b98f0d580
This commit is contained in:
SpiritCroc 2022-03-10 12:54:00 +01:00
parent b3d9ddbeca
commit 98ec8b4842

View file

@ -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) {