-
21 Jul 2010 3:10 AM #1
[FNR] LiveGridView / by Zero (ArithmeticException)
[FNR] LiveGridView / by Zero (ArithmeticException)
Hi,
I just encountered a bug when loading a LiveGridView store for the first time:
in LiveGridView.java@242:
I just switched from 2.1.3 to 2.2.0 beta and encoutered this error for the first time.PHP Code:if (totalCount != loader.getTotalCount()) { // totalCount = 0, loader.getTotalCount() = 11
totalCount = loader.getTotalCount(); // = 11
int height = totalCount * getCalculatedRowHeight(); // 11 * 19 = 209
// 1000000 as browser maxheight hack
int count = height / 1000000; // 209 / 1000000 => truncated to zero
int h = height / count; // 11 / 0 => BOOM
Is there a quick fix/workaround for this problem?
regards
-
21 Jul 2010 4:13 AM #2
Fixed in SVN as of revision 2151. Can you validate this?
-
21 Jul 2010 5:16 AM #3
Seems to be fixed now, everything works fine again. Thanks!
As for the release notes, there's a typo: "device" => "divide"
-
21 Jul 2010 6:34 AM #4
Ops, that typo gets fixed with my next commit
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Keyboard-Navigation of LiveGridView
By AndreD in forum Ext GWT: DiscussionReplies: 1Last Post: 20 Jul 2010, 1:15 AM -
[FNR] LiveGridView - getVisibleRowCount() can return too many rows
By mattpainter in forum Ext GWT: Bugs (2.x)Replies: 7Last Post: 9 Jun 2010, 3:23 AM -
[FNR] LiveGridView setStripeRows Bug
By support_csd_kz in forum Ext GWT: Bugs (2.x)Replies: 4Last Post: 17 Apr 2010, 8:30 AM -
Infinite loop with LiveGridView
By id9848949 in forum Ext GWT: DiscussionReplies: 1Last Post: 12 Dec 2009, 11:36 AM -
[CLOSED] [2.1] LiveGridView and SelectionModel
By baskor in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 4 Dec 2009, 2:32 AM


Reply With Quote