From 81884250bcbf17ca44c6eb19ec60ea2869c39731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 23 Jan 2011 09:51:08 +0100 Subject: [PATCH] Solve bug of scrollbar and window when there is a lot of operations in AccountPanel --- ChangeLog | 5 +++-- src/view/AccountPanel.cpp | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9a0b39d..422cb9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ -v0.2_dev (08/01/2011) +v0.2_dev (23/01/2011) ** User ** Better use of sizers (so better interface!) + No further problems with scrollbar in AccountPanel when there is a lot of operations ** Dev ** Use a factory to create panels (prepare for plug-in) @@ -13,4 +14,4 @@ v0.2_dev (08/01/2011) Bad selection of year with multiple years Bad year range check Unordered accounts (makes account selection points to bad indexes on account graph) - Bug in account creation (read only fields) + Bug in account creation (readonly fields) diff --git a/src/view/AccountPanel.cpp b/src/view/AccountPanel.cpp index 5ba728d..5963e7f 100644 --- a/src/view/AccountPanel.cpp +++ b/src/view/AccountPanel.cpp @@ -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)