diff --git a/app/src/main/java/jp/juggler/subwaytooter/itemviewholder/StatusButtonsPopup.kt b/app/src/main/java/jp/juggler/subwaytooter/itemviewholder/StatusButtonsPopup.kt index 9b8666e2..57eb9ff0 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/itemviewholder/StatusButtonsPopup.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/itemviewholder/StatusButtonsPopup.kt @@ -98,6 +98,8 @@ internal class StatusButtonsPopup( listView.getLocationInWindow(location) val listviewTop = location[1] + val clipTop = listviewTop + dip(8f) + val clipBottom = listviewTop + listView.height - dip(8f) anchor.getLocationInWindow(location) val anchorLeft = location[0] @@ -113,9 +115,6 @@ internal class StatusButtonsPopup( val popupWidth = viewRoot.measuredWidth val popupHeight = viewRoot.measuredHeight - val clipTop = listviewTop + dip(8f) - val clipBottom = listviewTop + listView.height - dip(8f) - // ポップアップウィンドウの左上(基準は親ウィンドウの左上) val popupX = anchorLeft + max(0, (anchorWidth - popupWidth) / 2) var popupY = anchorTop + anchorHeight / 2