diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-02-27 17:40:36 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-02-27 17:40:36 +0100 |
commit | 9ee61a64472da87f89dc88f0cfb14049f79bd77d (patch) | |
tree | 0912d21a023088e03fca3cdff9484792d73f146e | |
parent | 0cd257f55496a93972819b9ccbe6f425a06cd74c (diff) |
Use new get_desired_height to determine height of error message dialog
-rw-r--r-- | source/view.c | 3 |
1 files changed, 1 insertions, 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 ); |