mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 14:38:45 +03:00
FooteredTextView: Fix reserving footer width when forcing footer below
Change-Id: Iea91960f6bcbdc0af4956a65a04d926b98f0d580
This commit is contained in:
parent
b3d9ddbeca
commit
98ec8b4842
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,10 @@ class FooteredTextView @JvmOverloads constructor(
|
||||||
} else {
|
} else {
|
||||||
// Reserve vertical footer space
|
// Reserve vertical footer space
|
||||||
newHeight += footerHeight
|
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) {
|
if (addItalicPadding) {
|
||||||
|
|
Loading…
Reference in a new issue