- wxCoord wText = width - sizeBtn.x;
- m_text->SetSize(0, 0, wText, height);
+ wxCoord wText = width - sizeBtn.x - MARGIN;
+
+ //growing or shrinking a control like this doesn't really make sense
+ //so just leave the controls the same size and add whitespace
+ m_text->SetSize(2, 2, wText, 22);