mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Added GraphControl; FilteredCardList; ValueEditor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@74 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -18,11 +18,13 @@ CardViewer::CardViewer(Window* parent, int id, long style)
|
||||
|
||||
wxSize CardViewer::DoGetBestSize() const {
|
||||
wxSize ws = GetSize(), cs = GetClientSize();
|
||||
if (set && set->stylesheet) {
|
||||
return wxSize(set->stylesheet->card_width, set->stylesheet->card_height) + ws - cs;
|
||||
} else {
|
||||
return cs;
|
||||
if (set) {
|
||||
StyleSheetP stylesheet = set->stylesheetFor(card);
|
||||
if (stylesheet) {
|
||||
return wxSize(stylesheet->card_width, stylesheet->card_height) + ws - cs;
|
||||
}
|
||||
}
|
||||
return cs;
|
||||
}
|
||||
|
||||
void CardViewer::onChange() {
|
||||
|
||||
Reference in New Issue
Block a user