mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
removed minimum width of notes field
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@187 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -55,7 +55,8 @@ void TextCtrl::setValue(String* value) {
|
||||
style->width = cs.GetWidth() - 2;
|
||||
style->height = cs.GetHeight() - 2;
|
||||
viewers.front()->getEditor()->determineSize(true);
|
||||
SetMinSize(RealSize(style->width + 6, style->height + 6));
|
||||
// We don't wan to change the window size
|
||||
//SetMinSize(RealSize(style->width + 6, style->height + 6));
|
||||
}
|
||||
valueChanged();
|
||||
}
|
||||
@@ -99,6 +100,9 @@ void TextCtrl::onSize(wxSizeEvent&) {
|
||||
}
|
||||
onChange();
|
||||
}
|
||||
wxSize TextCtrl::DoGetBestSize() const {
|
||||
return wxSize(1,1);
|
||||
}
|
||||
|
||||
BEGIN_EVENT_TABLE(TextCtrl, DataEditor)
|
||||
EVT_SIZE (TextCtrl::onSize)
|
||||
|
||||
Reference in New Issue
Block a user