pull/1395/head
gedoor 3 years ago
parent 4cd5ca7b7f
commit fcf3d949f8
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/TextActionMenu.kt

@ -105,7 +105,7 @@ class TextActionMenu(private val context: Context, private val callBack: CallBac
) { ) {
if (expandTextMenu) { if (expandTextMenu) {
when { when {
startTopY > 300 -> { startTopY > 500 -> {
showAtLocation( showAtLocation(
view, view,
Gravity.BOTTOM or Gravity.START, Gravity.BOTTOM or Gravity.START,
@ -127,7 +127,7 @@ class TextActionMenu(private val context: Context, private val callBack: CallBac
) )
val popupHeight = contentView.measuredHeight val popupHeight = contentView.measuredHeight
when { when {
startBottomY > 300 -> { startBottomY > 500 -> {
showAtLocation( showAtLocation(
view, view,
Gravity.TOP or Gravity.START, Gravity.TOP or Gravity.START,

Loading…
Cancel
Save