diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index 6d52dd36f..982219e1b 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -126,6 +126,7 @@ void CComponentsWindow::initVarWindow( const int& x_pos, const int& y_pos, const y = y_pos; width = w; height = h; + ccw_h_footer = 0; //auto initWindowSize(); initWindowPos(); @@ -216,6 +217,8 @@ void CComponentsWindow::initFooter() //add of footer item happens initCCWItems() //set footer properties if (ccw_footer){ + if (ccw_h_footer) + ccw_footer->setHeight(ccw_h_footer); ccw_footer->setPos(0, cc_yr + height - ccw_footer->getHeight()- fr_thickness); ccw_footer->setWidth(width-2*fr_thickness); ccw_footer->enableShadow(false/*shadow*/); @@ -291,10 +294,10 @@ void CComponentsWindow::initBody() int h_body = height - h_header - h_footer - fr_thickness; int x_body = w_l_sidebar; int w_body = width-2*fr_thickness - w_l_sidebar - w_r_sidebar; - + ccw_body->setDimensionsAll(x_body, h_header, w_body, h_body); ccw_body->doPaintBg(true); - + //handle corner behavior if (!ccw_show_header) ccw_body->setCornerType(CORNER_TOP); diff --git a/src/gui/components/cc_frm_window.h b/src/gui/components/cc_frm_window.h index 6d1807798..ca2fb296e 100644 --- a/src/gui/components/cc_frm_window.h +++ b/src/gui/components/cc_frm_window.h @@ -89,6 +89,8 @@ class CComponentsWindow : public CComponentsForm fb_pixel_t ccw_col_head_text; ///footer bg color fb_pixel_t ccw_col_footer; + ///footer heigh, default defined by footer object itself + int ccw_h_footer; ///footer button font Font* ccw_button_font;