Dense calendar popup window of screen at bottom

The get_allocation function was in the wrong place for the button press
This commit is contained in:
Robert Fewell 2017-11-09 11:28:09 +00:00
parent 54b492ee83
commit 1f4a2e36db

View File

@ -1292,12 +1292,12 @@ gnc_dense_cal_button_press(GtkWidget *widget,
// trick with a bit of flicker.
gtk_window_move(GTK_WINDOW(dcal->transPopup), evt->x_root + 5, evt->y_root + 5);
gtk_widget_get_allocation(GTK_WIDGET(dcal->transPopup), &alloc);
populate_hover_window(dcal);
gtk_widget_queue_resize(GTK_WIDGET(dcal->transPopup));
gtk_widget_show_all(GTK_WIDGET(dcal->transPopup));
gtk_widget_get_allocation(GTK_WIDGET(dcal->transPopup), &alloc);
if (evt->x_root + 5 + alloc.width > dcal->screen_width)
win_xpos = evt->x_root - 2 - alloc.width;