diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-11-30 11:01:23 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-11-30 11:01:23 +0100 |
commit | 07cf9aabc7ecd443e2ac39975f60001f2301537e (patch) | |
tree | 1c97846a27ce9545efd094af66165d7d6f79475c | |
parent | f123deb37bc6778136c7091b4bdc6ea7ebfefd09 (diff) |
Re-calculate size before showing.
-rw-r--r-- | source/view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/view.c b/source/view.c index 5881a459..a13e0292 100644 --- a/source/view.c +++ b/source/view.c @@ -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 ); |