Fix bottom page content being cut

This commit is contained in:
CalebK 2024-08-13 16:23:46 +03:00 committed by MohitMaliFtechiz
parent d43092f774
commit d44eb701ab

View File

@ -1335,6 +1335,12 @@ abstract class CoreReaderFragment :
private fun safelyAddWebView(webView: KiwixWebView) {
webView.parent?.let { (it as ViewGroup).removeView(webView) }
contentFrame?.addView(webView)
contentFrame?.setPadding(
contentFrame?.paddingLeft ?: 0,
contentFrame?.paddingTop ?: 0,
contentFrame?.paddingRight ?: 0,
CONTENT_FRAME_BOTTOM_PADDING
)
}
protected fun selectTab(position: Int) {
@ -2417,3 +2423,5 @@ abstract class CoreReaderFragment :
*/
abstract fun restoreViewStateOnInvalidJSON()
}
private const val CONTENT_FRAME_BOTTOM_PADDING = 32