mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
src/gui/epgview.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.
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