Code cleanup
This commit is contained in:
parent
33369f4be7
commit
9f106c4d93
|
@ -33,6 +33,7 @@ internal class AsApplicationLAF(notification: Notify, notifyCanvas: NotifyCanvas
|
||||||
anchorY = getAnchorY(position, parentBounds)
|
anchorY = getAnchorY(position, parentBounds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("DuplicatedCode")
|
||||||
private fun getAnchorX(position: Position, bounds: Rectangle): Int {
|
private fun getAnchorX(position: Position, bounds: Rectangle): Int {
|
||||||
// we use the screen that the mouse is currently on.
|
// we use the screen that the mouse is currently on.
|
||||||
val startX = 0
|
val startX = 0
|
||||||
|
|
|
@ -37,6 +37,7 @@ internal class AsDesktopLAF(notification: Notify, notifyCanvas: NotifyCanvas, pr
|
||||||
anchorY = getAnchorY(position, parentBounds)
|
anchorY = getAnchorY(position, parentBounds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("DuplicatedCode")
|
||||||
private fun getAnchorX(position: Position, bounds: Rectangle): Int {
|
private fun getAnchorX(position: Position, bounds: Rectangle): Int {
|
||||||
// we use the screen that the mouse is currently on.
|
// we use the screen that the mouse is currently on.
|
||||||
val startX = bounds.getX().toInt()
|
val startX = bounds.getX().toInt()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user