FooteredTextView: Fix reserving footer width when forcing footer below
Change-Id: Iea91960f6bcbdc0af4956a65a04d926b98f0d580
This commit is contained in:
parent
b3d9ddbeca
commit
98ec8b4842
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue