diff --git a/src/dorkbox/notify/AsApplicationLAF.kt b/src/dorkbox/notify/AsApplicationLAF.kt index a01b42d..9d29987 100755 --- a/src/dorkbox/notify/AsApplicationLAF.kt +++ b/src/dorkbox/notify/AsApplicationLAF.kt @@ -33,6 +33,7 @@ internal class AsApplicationLAF(notification: Notify, notifyCanvas: NotifyCanvas anchorY = getAnchorY(position, parentBounds) } + @Suppress("DuplicatedCode") private fun getAnchorX(position: Position, bounds: Rectangle): Int { // we use the screen that the mouse is currently on. val startX = 0 diff --git a/src/dorkbox/notify/AsDesktopLAF.kt b/src/dorkbox/notify/AsDesktopLAF.kt index 6e95d0f..203835b 100755 --- a/src/dorkbox/notify/AsDesktopLAF.kt +++ b/src/dorkbox/notify/AsDesktopLAF.kt @@ -37,6 +37,7 @@ internal class AsDesktopLAF(notification: Notify, notifyCanvas: NotifyCanvas, pr anchorY = getAnchorY(position, parentBounds) } + @Suppress("DuplicatedCode") private fun getAnchorX(position: Position, bounds: Rectangle): Int { // we use the screen that the mouse is currently on. val startX = bounds.getX().toInt()