summaryrefslogtreecommitdiffstats
path: root/Project/TextForm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/TextForm.cpp')
-rw-r--r--Project/TextForm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Project/TextForm.cpp b/Project/TextForm.cpp
index 6c3304f..b2624ba 100644
--- a/Project/TextForm.cpp
+++ b/Project/TextForm.cpp
@@ -3,6 +3,7 @@
TextForm::TextForm(wxWindow* parent, Text* text, std::vector<Element*> elementList, double systemPowerBase)
: TextFormBase(parent)
{
+ SetSize(GetBestSize());
m_parent = parent;
m_textToEdit = text;
m_allElements.GetElementsFromList(elementList);