File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
BalloonWindow/src/main/java/com/ht/balloonwindow Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ open class BalloonWindow : PopupWindow {
101
101
this .listener = listener
102
102
}
103
103
104
- private fun getAbsolutePosition (view : View ): Pair <Int , Int > {
104
+ open fun getTargetAbsolutePosition (view : View ): Pair <Int , Int > {
105
105
val locations = IntArray (2 )
106
106
view.getLocationOnScreen(locations)
107
107
val xPos = locations[0 ]
@@ -117,7 +117,7 @@ open class BalloonWindow : PopupWindow {
117
117
measuredContentsWidth = contentView.measuredWidth
118
118
measuredContentsHeight = contentView.measuredHeight
119
119
120
- var (xPos, yPos) = getAbsolutePosition (targetView)
120
+ var (xPos, yPos) = getTargetAbsolutePosition (targetView)
121
121
val pivotX: Float
122
122
val pivotY: Float
123
123
val margin = margin.toPx()
You can’t perform that action at this time.
0 commit comments