mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-20 13:10:35 +01:00
コード整形
This commit is contained in:
parent
34da080da1
commit
ca9bcce271
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user