mirror of
https://github.com/lbonn/rofi
synced 2024-11-23 12:23:02 +00:00
Use new get_desired_height to determine height of error message dialog
This commit is contained in:
parent
0cd257f554
commit
9ee61a6447
1 changed files with 1 additions and 2 deletions
|
@ -1663,9 +1663,8 @@ int rofi_view_error_dialog ( const char *msg, int markup )
|
|||
rofi_view_calculate_window_width ( state );
|
||||
// Need to resize otherwise calculated desired height is wrong.
|
||||
widget_resize ( WIDGET ( state->main_window ), state->width, 100 );
|
||||
unsigned int line_height = textbox_get_height ( state->text );
|
||||
// resize window vertically to suit
|
||||
state->height = line_height + widget_padding_get_padding_height ( WIDGET ( state->main_window ) );
|
||||
state->height = widget_get_desired_height ( WIDGET (state->main_window));
|
||||
|
||||
// Calculte window position.
|
||||
rofi_view_calculate_window_position ( state );
|
||||
|
|
Loading…
Reference in a new issue