1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-20 13:10:35 +01:00

コード整形

This commit is contained in:
tateisu 2023-01-13 04:07:49 +09:00
parent 34da080da1
commit ca9bcce271

View File

@ -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