Skip to content

Commit 039a480

Browse files
committed
Merge pull request #109708 from Giganzo/popup-menu-accel
Fix PopupMenu accel position
2 parents 9812d40 + cadfd52 commit 039a480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/popup_menu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ void PopupMenu::_draw_items() {
965965
} else {
966966
item_ofs.x = display_width - theme_cache.panel_style->get_margin(SIDE_RIGHT) - items[i].accel_text_buf->get_size().x - theme_cache.item_end_padding;
967967
}
968-
Vector2 text_pos = item_ofs + Point2(0, Math::floor((h - items[i].text_buf->get_size().y) / 2.0));
968+
Vector2 text_pos = item_ofs + Point2(0, Math::floor((h - items[i].accel_text_buf->get_size().y) / 2.0));
969969
if (theme_cache.font_outline_size > 0 && theme_cache.font_outline_color.a > 0) {
970970
items[i].accel_text_buf->draw_outline(ci, text_pos, theme_cache.font_outline_size, theme_cache.font_outline_color);
971971
}

0 commit comments

Comments
 (0)