src/gui/components/cc_frm_icons.cpp: initialize of dimensions dependently from added icons

... so it is possible to get usable dimension values. Useful if in parent
object none values or too small dimensions are defined.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4550ba4d24
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-03-25 (Sun, 25 Mar 2018)



------------------
This commit was generated by Migit
This commit is contained in:
2018-03-25 22:48:12 +02:00
committed by vanhofen
parent 008685bf8c
commit 513a5e52e8

View File

@@ -84,7 +84,10 @@ void CComponentsIconForm::addIcon(const std::string& icon_name)
icon_name,
this);
ccp->doPaintBg(false);
int dx, dy;
ccp->getRealSize(&dx, &dy);
height = max(height, dy);
width = max(width, dx);
initChainItems();
}