Fix hover being drawn twice inside PopupMenus

This commit is contained in:
Michael Alexsander 2022-06-04 02:51:22 -03:00
parent a6b27b526f
commit 78fdebf8cc
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)));
}