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:
twanvl
2007-01-29 14:35:19 +00:00
parent 3a18f787ce
commit 27d5b2c94b
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -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)
+1
View File
@@ -45,6 +45,7 @@ class TextCtrl : public DataEditor {
protected:
virtual void onInit();
virtual wxSize DoGetBestSize() const;
private:
String* value; ///< Value to edit