mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user