mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
CComponentsHeader: fix centering of header title
This commit is contained in:
@@ -581,7 +581,7 @@ void CComponentsHeader::initCaption()
|
|||||||
|
|
||||||
//set alignment of text item in dependency from text alignment
|
//set alignment of text item in dependency from text alignment
|
||||||
if (cch_caption_align == CTextBox::CENTER)
|
if (cch_caption_align == CTextBox::CENTER)
|
||||||
cch_text_x = CC_CENTERED;
|
cch_text_x = width/2 - cc_text_w/2;
|
||||||
|
|
||||||
//assign general properties
|
//assign general properties
|
||||||
cch_text_obj->setDimensionsAll(cch_text_x, cch_items_y, cc_text_w, height);
|
cch_text_obj->setDimensionsAll(cch_text_x, cch_items_y, cc_text_w, height);
|
||||||
|
Reference in New Issue
Block a user