msgbox: ensure top allignment of buttons in message boxes

Behavior with definied frame colors, e.g. error and info boxes,
is untouched.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 87799e0260
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)



------------------
This commit was generated by Migit
This commit is contained in:
2019-10-27 22:56:50 +01:00
committed by vanhofen
parent 71fa4e623a
commit 5d6847b54b

View File

@@ -105,7 +105,7 @@ void CMsgBox::init( const int& Height,
col_frame = color_frame;
col_body = color_body;
col_shadow = color_shadow;
fr_thickness = g_settings.theme.message_frame_enable ? frame_width : 0;
fr_thickness = g_settings.theme.message_frame_enable || col_frame != HINTBOX_DEFAULT_FRAME_COLOR ? frame_width : 0;
//enable footer and add its height
showFooter(true);
@@ -119,6 +119,7 @@ void CMsgBox::init( const int& Height,
int h_current = height;
h_current += ccw_footer->getHeight();
height = max(max(MSGBOX_MIN_HEIGHT, Height), h_current);
ccw_footer->ButtonsOnTop(true);
//ensure matching height for screen
height = min(MAX_WINDOW_HEIGHT, height);