From 9ee61a64472da87f89dc88f0cfb14049f79bd77d Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 27 Feb 2017 17:40:36 +0100 Subject: [PATCH] Use new get_desired_height to determine height of error message dialog --- source/view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/view.c b/source/view.c index b9845a58..7eb18ce6 100644 --- a/source/view.c +++ b/source/view.c @@ -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 );