diff --git a/src/gui/components/cc_item_infobox.cpp b/src/gui/components/cc_item_infobox.cpp index a2a6b6cbb..bc41347b0 100644 --- a/src/gui/components/cc_item_infobox.cpp +++ b/src/gui/components/cc_item_infobox.cpp @@ -83,6 +83,11 @@ CComponentsInfoBox::~CComponentsInfoBox() void CComponentsInfoBox::setPicture(const std::string& picture_name) { pic_name = picture_name; + if (!pic_name.empty()){ + int w, h; + frameBuffer->getIconSize(pic_name.c_str(), &w, &h); + height = max(h, height); + } } void CComponentsInfoBox::setPicture(const char* picture_name)