Commit 6c74f12d authored by twanvl's avatar twanvl

removed minimum width of notes field

parent dbd09116
......@@ -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)
......
......@@ -45,6 +45,7 @@ class TextCtrl : public DataEditor {
protected:
virtual void onInit();
virtual wxSize DoGetBestSize() const;
private:
String* value; ///< Value to edit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment