1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-10 06:40:37 +02:00

Update status bar popup location

This commit is contained in:
Alex Plate 2019-11-26 13:22:20 +03:00
parent a470b579a9
commit f56ed7fd50
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -64,8 +64,7 @@ private object VimStatusBar : StatusBarWidget, StatusBarWidget.IconPresentation
val popup = VimActionsPopup.getPopup(DataManager.getInstance().getDataContext(component))
val dimension = popup.content.preferredSize
// Trying to find the best position. 16 - size of the icon, 1 - height of the delimiter
val at = Point(-dimension.width + 16, -dimension.height - 1)
val at = Point(0, -dimension.height)
popup.show(RelativePoint(component, at))
}