Skip to content

Commit

Permalink
Merge pull request #42957 from Chaosus/remove_print_windowpos
Browse files Browse the repository at this point in the history
Remove printing of windowpos/screenpos inside MenuButton::pressed
  • Loading branch information
akien-mga authored Oct 21, 2020
2 parents c3964b6 + f2b98b4 commit 918f035
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scene/gui/menu_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 918f035

Please sign in to comment.