1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Merge pull request #61687 from YeldhamDev/double_hover_fix

Fix hover being drawn twice inside `PopupMenu`s
This commit is contained in:
Rémi Verschelde
2022-06-06 13:17:25 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -551,7 +551,6 @@ void PopupMenu::_notification(int p_what) {
}
if (i == mouse_over) {
hover->draw(ci, Rect2(item_ofs + Point2(-hseparation, -vseparation / 2), Size2(get_size().width - style->get_minimum_size().width + hseparation * 2, h + vseparation)));
hover->draw(ci, Rect2(item_ofs + Point2(0, -vseparation / 2), Size2(size.width - style->get_minimum_size().width, h + vseparation)));
}