cc_frm_header: fix clock width

This commit is contained in:
2019-11-09 11:05:06 +01:00
parent ca9c47b106
commit 42d69e2c34

View File

@@ -616,7 +616,7 @@ void CComponentsHeader::initCaption()
cch_cl_obj->refresh(); cch_cl_obj->refresh();
//get width of clock object //get width of clock object
int clock_w = cch_cl_enable ? cch_cl_obj->getWidth() : 0; int clock_w = cch_cl_enable ? cch_cl_obj->getWidth() + cch_offset : 0;
//set x position of clock //set x position of clock
cch_cl_obj->setXPos(width - buttons_w - clock_w); cch_cl_obj->setXPos(width - buttons_w - clock_w);