diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 8d5d2b0bc..99cbd5544 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -475,10 +475,12 @@ class ReadBookActivity : ReadBookBaseActivity(), * 显示文本操作菜单 */ override fun showTextActionMenu() { - val nbh = if (ReadBookConfig.hideNavigationBar) navigationBarHeight else 0 + val navigationBarHeight = + if (!ReadBookConfig.hideNavigationBar && navigationBarGravity == Gravity.BOTTOM) + navigationBarHeight else 0 textActionMenu.show( binding.textMenuPosition, - binding.root.height + nbh, + binding.root.height + navigationBarHeight, binding.textMenuPosition.x.toInt(), binding.textMenuPosition.y.toInt(), binding.cursorLeft.y.toInt() + binding.cursorLeft.height,