Layout() always called when editor/viewer control changes size

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@145 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-22 15:33:14 +00:00
parent 274cb1117f
commit a16c098eac
10 changed files with 41 additions and 35 deletions
+1 -3
View File
@@ -53,15 +53,13 @@ void StylePanel::onChangeSet() {
void StylePanel::onAction(const Action& action, bool undone) {
TYPE_CASE_(action, ChangeSetStyleAction) {
list->select(set->stylesheetFor(card)->name(), false);
// updateSize();
}
TYPE_CASE(action, ChangeCardStyleAction) {
if (action.card == card) {
// preview->onAction(action, undone); // update the preview control before we determine our new size
list->select(set->stylesheetFor(card)->name(), false);
// updateSize();
}
}
use_for_all->Enable(card && card->stylesheet);
}
// ----------------------------------------------------------------------------- : Selection