Fixed a layout problem

This commit is contained in:
Zane U. Ji 2012-08-04 15:52:08 +08:00
parent 1bb7a34a5e
commit 736f683145
1 changed files with 2 additions and 1 deletions

View File

@ -118,9 +118,10 @@ FindReplacePanel::FindReplacePanel (
sizer->Add ( spacer2, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, sizerOffset ); sizer->Add ( spacer2, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, sizerOffset );
sizer->Add ( matchCaseBox, 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->Add ( regexBox, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, sizerOffset );
sizer->Layout();
this->SetSizer ( sizer ); this->SetSizer ( sizer );
sizer->SetSizeHints ( this );
sizer->Layout();
this->SetSize ( -1, findNextButton->GetSize().GetHeight() + 10 ); this->SetSize ( -1, findNextButton->GetSize().GetHeight() + 10 );
findEditLength = findEdit->GetValue().Length(); findEditLength = findEdit->GetValue().Length();