Resize list of stylesheets to fit available space

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1138 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-11 13:23:29 +00:00
parent 5fddaa3715
commit 520b472483
4 changed files with 32 additions and 2 deletions
+4
View File
@@ -100,3 +100,7 @@ void PackageList::select(const String& name, bool send_event) {
update();
return;
}
int PackageList::requiredWidth() const {
return (item_size.x + SPACING) * (int)itemCount();
}