From 736f68314583b4056cf48c41efd424076e8e178b Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 4 Aug 2012 15:52:08 +0800 Subject: [PATCH] Fixed a layout problem --- src/findreplacepanel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/findreplacepanel.cpp b/src/findreplacepanel.cpp index 718168f..434805f 100755 --- a/src/findreplacepanel.cpp +++ b/src/findreplacepanel.cpp @@ -118,9 +118,10 @@ FindReplacePanel::FindReplacePanel ( sizer->Add ( spacer2, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, sizerOffset ); sizer->Add ( matchCaseBox, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, sizerOffset ); sizer->Add ( regexBox, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, sizerOffset ); - sizer->Layout(); this->SetSizer ( sizer ); + sizer->SetSizeHints ( this ); + sizer->Layout(); this->SetSize ( -1, findNextButton->GetSize().GetHeight() + 10 ); findEditLength = findEdit->GetValue().Length();