1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Re-calculate size before showing.

This commit is contained in:
Dave Davenport 2017-11-30 11:01:23 +01:00
parent f123deb37b
commit 07cf9aabc7

View file

@ -1702,10 +1702,12 @@ RofiViewState *rofi_view_create ( Mode *sw,
// Only needed when window is fixed size.
if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == MENU_NORMAL_WINDOW ) {
listview_set_fixed_num_lines ( state->list_view );
rofi_view_window_update_size ( state );
}
state->height = rofi_view_calculate_height ( state );
// Move the window to the correct x,y position.
rofi_view_calculate_window_position ( state );
rofi_view_window_update_size ( state );
state->quit = FALSE;
rofi_view_refilter ( state );