1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

Remove printing of windowpos/screenpos in MenuButton

This commit is contained in:
Yuri Roubinsky
2020-10-21 09:58:37 +03:00
parent c3964b6c83
commit f2b98b4106

View File

@@ -53,17 +53,9 @@ void MenuButton::_unhandled_key_input(Ref<InputEvent> p_event) {
}
void MenuButton::pressed() {
{
Window *w = Object::cast_to<Window>(get_viewport());
if (w && !w->is_embedding_subwindows()) {
print_line("windowpos: " + w->get_position());
}
}
Size2 size = get_size();
Point2 gp = get_screen_position();
print_line("screenpos: " + gp);
gp.y += get_size().y;
popup->set_position(gp);