neutrino: improve menu width calculation

calculate menu width in paint() instead of addItem()
this allows to cahnge the width of a menu later on dynamically

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@308 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-02-08 20:47:37 +00:00
parent d6180e4ab2
commit 292891db1f
2 changed files with 11 additions and 10 deletions

View File

@@ -331,7 +331,7 @@ class CMenuWidget : public CMenuTarget
std::vector<unsigned int> page_start;
std::string iconfile;
int needed_width;
int min_width;
int width;
int height;
int wanted_height;