mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user