mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CComponentsWindow: fix max width of base items, if frame was set
Header, body and footer were too wide on the right side.
Origin commit data
------------------
Commit: b9f35bfc6d
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-08 (Sun, 08 Sep 2013)
This commit is contained in:
@@ -161,7 +161,7 @@ void CComponentsWindow::initHeader()
|
||||
//set header properties
|
||||
if (ccw_head){
|
||||
ccw_head->setPos(0, 0);
|
||||
ccw_head->setWidth(width);
|
||||
ccw_head->setWidth(width-2*fr_thickness);
|
||||
ccw_head->setIcon(ccw_icon_name);
|
||||
ccw_head->setCaption(ccw_caption);
|
||||
ccw_head->initCCItems();
|
||||
@@ -185,7 +185,7 @@ void CComponentsWindow::initBody()
|
||||
fh = ccw_footer->getHeight();
|
||||
int hh = ccw_head->getHeight();
|
||||
int h_body = height - hh - fh;
|
||||
ccw_body->setDimensionsAll(0, CC_APPEND, width, h_body);
|
||||
ccw_body->setDimensionsAll(0, CC_APPEND, width-2*fr_thickness, h_body);
|
||||
ccw_body->doPaintBg(false);
|
||||
}
|
||||
}
|
||||
@@ -202,7 +202,7 @@ void CComponentsWindow::initFooter()
|
||||
//set footer properties
|
||||
if (ccw_footer){
|
||||
ccw_footer->setPos(0, CC_APPEND);
|
||||
ccw_footer->setWidth(width);
|
||||
ccw_footer->setWidth(width-2*fr_thickness);
|
||||
ccw_footer->setShadowOnOff(shadow);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user