mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 06:14:14 +00:00
Re-calculate size before showing.
This commit is contained in:
parent
f123deb37b
commit
07cf9aabc7
1 changed files with 3 additions and 1 deletions
|
@ -1702,10 +1702,12 @@ RofiViewState *rofi_view_create ( Mode *sw,
|
||||||
// Only needed when window is fixed size.
|
// Only needed when window is fixed size.
|
||||||
if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == MENU_NORMAL_WINDOW ) {
|
if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == MENU_NORMAL_WINDOW ) {
|
||||||
listview_set_fixed_num_lines ( state->list_view );
|
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.
|
// Move the window to the correct x,y position.
|
||||||
rofi_view_calculate_window_position ( state );
|
rofi_view_calculate_window_position ( state );
|
||||||
|
rofi_view_window_update_size ( state );
|
||||||
|
|
||||||
state->quit = FALSE;
|
state->quit = FALSE;
|
||||||
rofi_view_refilter ( state );
|
rofi_view_refilter ( state );
|
||||||
|
|
Loading…
Reference in a new issue