mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
msgbox: ensure top allignment of buttons in message boxes
Behavior with definied frame colors, e.g. error and info boxes, is untouched.
This commit is contained in:
@@ -105,7 +105,7 @@ void CMsgBox::init( const int& Height,
|
|||||||
col_frame = color_frame;
|
col_frame = color_frame;
|
||||||
col_body = color_body;
|
col_body = color_body;
|
||||||
col_shadow = color_shadow;
|
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
|
//enable footer and add its height
|
||||||
showFooter(true);
|
showFooter(true);
|
||||||
@@ -119,6 +119,7 @@ void CMsgBox::init( const int& Height,
|
|||||||
int h_current = height;
|
int h_current = height;
|
||||||
h_current += ccw_footer->getHeight();
|
h_current += ccw_footer->getHeight();
|
||||||
height = max(max(MSGBOX_MIN_HEIGHT, Height), h_current);
|
height = max(max(MSGBOX_MIN_HEIGHT, Height), h_current);
|
||||||
|
ccw_footer->ButtonsOnTop(true);
|
||||||
|
|
||||||
//ensure matching height for screen
|
//ensure matching height for screen
|
||||||
height = min(MAX_WINDOW_HEIGHT, height);
|
height = min(MAX_WINDOW_HEIGHT, height);
|
||||||
|
Reference in New Issue
Block a user