From 6bdd8cd771d293219a0d1fc9b960bd16c1c3b8e9 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 9 Nov 2012 23:26:39 +0100 Subject: [PATCH] CComponentsHeader: use height of header as default height for icon space --- src/gui/components/components.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/components.cpp b/src/gui/components/components.cpp index 126f3cc51..5bc97c33a 100644 --- a/src/gui/components/components.cpp +++ b/src/gui/components/components.cpp @@ -1735,7 +1735,7 @@ void CComponentsHeader::paint(bool do_save_bg) int cch_icon_x = 0; if (cch_icon_name) cch_icon_obj = new CComponentsPicture(cch_icon_x, cch_items_y, 0, 0, cch_icon_name); - cch_icon_obj->setWidth(48); + cch_icon_obj->setWidth(height-2*fr_thickness); cch_icon_obj->setHeight(height); cch_icon_obj->setPictureAlign(CC_ALIGN_HOR_CENTER | CC_ALIGN_VER_CENTER); cch_icon_obj->doPaintBg(false);