mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -04:00
Fix bottom page content being cut
This commit is contained in:
parent
d43092f774
commit
d44eb701ab
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user