Solve bug of scrollbar and window when there is a lot of operations in AccountPanel

This commit is contained in:
2011-01-23 09:51:08 +01:00
parent 87b68db319
commit 81884250bc
2 changed files with 6 additions and 2 deletions

View File

@@ -146,6 +146,7 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, pare
Fit();
SetMinSize(wxSize(rect.width-rect.x-15, rect.height-rect.y-128-25));
SetMaxSize(wxSize(rect.width-rect.x-15, rect.height-rect.y-128-25));
SetScrollbars(10, 10, 100/10, 100/10);
}
@@ -573,6 +574,8 @@ void AccountPanel::UpdateStats()
void AccountPanel::OnOperationModified(wxGridEvent& event)
{
UpdateStats();
Fit();
}
void AccountPanel::OnAccountModified(wxGridEvent& event)