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
------------------
Commit: 4550ba4d24
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-03-25 (Sun, 25 Mar 2018)
This commit is contained in:
2018-03-25 22:48:12 +02:00
committed by vanhofen
parent 0a66ec8730
commit d61e974117

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();
}