Merge pull request #42957 from Chaosus/remove_print_windowpos

Remove printing of windowpos/screenpos inside MenuButton::pressed
This commit is contained in:
Rémi Verschelde 2020-10-21 09:13:33 +02:00 committed by GitHub
commit 918f03529f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);