- //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);
- m_btn->SetSize(0 + wText + MARGIN, 0, -1, height);
+ m_text->SetSize(TEXTBORDER, (height - sizeText.y) / 2, wText, -1);
+ m_btn->SetSize(0 + wText + MARGIN + 2 * TEXTBORDER , (height - sizeBtn.y) / 2 , -1, -1 );